fix
This commit is contained in:
parent
4342e09699
commit
1d9b70aa18
|
@ -117,11 +117,6 @@ button:hover {
|
|||
</form>
|
||||
</div>
|
||||
|
||||
<div id="messageContainer">
|
||||
<p id="successMessage" class="message success"></p>
|
||||
<p id="errorMessage" class="message error"></p>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function resetPassword() {
|
||||
const new_password = document.getElementById("new_password").value;
|
||||
|
@ -148,9 +143,9 @@ function resetPassword() {
|
|||
.then(response => response.json())
|
||||
.then(data => {
|
||||
if (data.code == 200 ) {
|
||||
document.getElementById('successMessage').innerText = JSON.stringify(data);
|
||||
alert(data.msg);
|
||||
} else {
|
||||
document.getElementById('errorMessage').innerText = JSON.stringify(data);
|
||||
alert(data.msg);
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
|
|
|
@ -67,6 +67,7 @@ func FinishRegister(svcCtx *svc.ServiceContext, user *gmodel.FsUser, token *auth
|
|||
}
|
||||
|
||||
func CommonNotify(WebsocketAddr, wid string, event *wevent.WebsocketEvent) error {
|
||||
|
||||
reqWebsocketAddr := fmt.Sprintf("%s/api/websocket/common_notify", WebsocketAddr)
|
||||
tp := requests.Post(reqWebsocketAddr)
|
||||
tp.SetBodyJson(requests.M{
|
||||
|
|
Loading…
Reference in New Issue
Block a user