fix: show error alert if password change fails

This commit is contained in:
Eldor
2023-02-21 15:56:00 +02:00
committed by Julian Lam
parent edd2fc38fc
commit 3bd9a87154

View File

@@ -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('');