mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: show error alert if password change fails
This commit is contained in:
@@ -77,6 +77,7 @@ define('forum/account/edit/password', [
|
|||||||
ajaxify.go('user/' + ajaxify.data.userslug + '/edit');
|
ajaxify.go('user/' + ajaxify.data.userslug + '/edit');
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
.catch(alerts.error)
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
btn.removeClass('disabled').find('i').addClass('hide');
|
btn.removeClass('disabled').find('i').addClass('hide');
|
||||||
currentPassword.val('');
|
currentPassword.val('');
|
||||||
|
|||||||
Reference in New Issue
Block a user