apply the fix for password change recommended by @sairim

This commit is contained in:
ansuz
2018-08-07 11:40:21 +02:00
parent 58332a9ce3
commit 24c7ce57e1
3 changed files with 6 additions and 0 deletions

View File

@@ -428,6 +428,10 @@ define([
return;
}
if (oldPassword === newPassword) {
return void UI.alert(Messages.settings_changePasswordNewPasswordSameAsOld);
}
UI.confirm(Messages.settings_changePasswordConfirm,
function (yes) {
if (!yes) { return; }