fixed #1880 Changing email to a wrong email does not block the user after validation

This commit is contained in:
MatthieuLP
2023-03-14 10:49:46 +01:00
parent 443d41ea97
commit b4285310e9

View File

@@ -1407,6 +1407,11 @@ function update_user_info() {
} else if (data.stat === 'fail') {
$("#UserList .update-user-fail").html(data.message);
$("#UserList .update-user-fail").fadeIn();
$(".update-user-button i").addClass("icon-floppy").removeClass("icon-spin6 animate-spin");
$(".update-user-button").removeClass("unclickable");
setTimeout(() => {
$("#UserList .update-user-fail").fadeOut();
}, 5000);
}
}
});