mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
25532_issue_password_update_notification_updated (#25756)
* Password Update Notification Added an IF ELSE statement to ensure that feedback is provided to the user on successfully updating a user password in settings. * Password Update Success Message Updated the password update success message
This commit is contained in:
parent
d2afda0f04
commit
f05cd64458
1 changed files with 3 additions and 1 deletions
|
|
@ -668,7 +668,9 @@ $(document).ready(function () {
|
|||
OC.generateUrl('/settings/users/changepassword'),
|
||||
{username: uid, password: $(this).val(), recoveryPassword: recoveryPasswordVal},
|
||||
function (result) {
|
||||
if (result.status != 'success') {
|
||||
if (result.status === 'success') {
|
||||
OC.Notification.showTemporary(t('admin', 'Password successfully changed'));
|
||||
} else {
|
||||
OC.Notification.showTemporary(t('admin', result.data.message));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue