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