From eb5ebf8b5e1e4a9a596a0fb9361103855e42dfcd Mon Sep 17 00:00:00 2001 From: liangshiwei Date: Wed, 12 Oct 2022 17:02:01 +0800 Subject: [PATCH] Not allowed user change password same as current password --- .../Volo/Abp/Account/Localization/Resources/ar.json | 1 + .../Volo/Abp/Account/Localization/Resources/cs.json | 1 + .../Volo/Abp/Account/Localization/Resources/da.json | 1 + .../Volo/Abp/Account/Localization/Resources/de-DE.json | 1 + .../Volo/Abp/Account/Localization/Resources/de.json | 1 + .../Volo/Abp/Account/Localization/Resources/el.json | 1 + .../Volo/Abp/Account/Localization/Resources/en-GB.json | 1 + .../Volo/Abp/Account/Localization/Resources/en.json | 1 + .../Volo/Abp/Account/Localization/Resources/es-mx.json | 1 + .../Volo/Abp/Account/Localization/Resources/es.json | 1 + .../Volo/Abp/Account/Localization/Resources/fa.json | 1 + .../Volo/Abp/Account/Localization/Resources/fi.json | 1 + .../Volo/Abp/Account/Localization/Resources/fr.json | 1 + .../Volo/Abp/Account/Localization/Resources/hi.json | 1 + .../Volo/Abp/Account/Localization/Resources/hu.json | 1 + .../Volo/Abp/Account/Localization/Resources/is.json | 1 + .../Volo/Abp/Account/Localization/Resources/it.json | 1 + .../Volo/Abp/Account/Localization/Resources/nl.json | 1 + .../Volo/Abp/Account/Localization/Resources/pl-PL.json | 1 + .../Volo/Abp/Account/Localization/Resources/pt-BR.json | 1 + .../Volo/Abp/Account/Localization/Resources/ro-RO.json | 1 + .../Volo/Abp/Account/Localization/Resources/ru.json | 1 + .../Volo/Abp/Account/Localization/Resources/sk.json | 1 + .../Volo/Abp/Account/Localization/Resources/sl.json | 1 + .../Volo/Abp/Account/Localization/Resources/tr.json | 1 + .../Volo/Abp/Account/Localization/Resources/vi.json | 1 + .../Volo/Abp/Account/Localization/Resources/zh-Hans.json | 1 + .../Volo/Abp/Account/Localization/Resources/zh-Hant.json | 1 + .../Components/ProfileManagementGroup/Password/Default.js | 7 ++++++- 29 files changed, 34 insertions(+), 1 deletion(-) diff --git a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/ar.json b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/ar.json index b9840ed207..cdabc68af1 100644 --- a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/ar.json +++ b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/ar.json @@ -36,6 +36,7 @@ "PersonalSettingsSaved": "تم حفظ الإعدادات الشخصية", "PasswordChanged": "تم تغيير كلمة المرور", "NewPasswordConfirmFailed": "يرجى تأكيد كلمة المرور الجديدة.", + "NewPasswordSameAsOld": "يجب أن تكون كلمة المرور الجديدة مختلفة عن كلمة المرور الحالية.", "Manage": "إدارة", "MyAccount": "حسابي", "DisplayName:Abp.Account.IsSelfRegistrationEnabled": "هل تم تمكين التسجيل الذاتي", diff --git a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/cs.json b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/cs.json index 3266adae51..35b356274a 100644 --- a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/cs.json +++ b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/cs.json @@ -35,6 +35,7 @@ "PersonalSettingsSaved": "Osobní nastavení uloženo", "PasswordChanged": "Heslo změněno", "NewPasswordConfirmFailed": "Potvrďte nové heslo.", + "NewPasswordSameAsOld": "Nové heslo musí být odlišné od současného.", "Manage": "Spravovat", "MyAccount": "Můj účet", "DisplayName:Abp.Account.IsSelfRegistrationEnabled": "Je povolena automatická registrace", diff --git a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/da.json b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/da.json index 38d81e8516..40092d7c9d 100644 --- a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/da.json +++ b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/da.json @@ -35,6 +35,7 @@ "PersonalSettingsSaved": "Personlige indstillinger gemt", "PasswordChanged": "Kodeord gemt", "NewPasswordConfirmFailed": "Bekræft venligst det nye kodeord.", + "NewPasswordSameAsOld": "Det nye kodeord skal være anderledes end det gamle.", "Manage": "Administrer", "MyAccount": "Min konto", "DisplayName:Abp.Account.IsSelfRegistrationEnabled": "Er registrering aktiveret", diff --git a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/de-DE.json b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/de-DE.json index 02eae9240d..519c47c36c 100644 --- a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/de-DE.json +++ b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/de-DE.json @@ -36,6 +36,7 @@ "PersonalSettingsSaved": "Persönliche Einstellungen gespeichert", "PasswordChanged": "Passwort geändert", "NewPasswordConfirmFailed": "Bitte bestätigen Sie das neue Passwort.", + "NewPasswordSameAsOld": "Das neue Passwort muss sich vom alten Passwort unterscheiden.", "Manage": "Verwalten", "MyAccount": "Mein Benutzerkonto", "DisplayName:Abp.Account.IsSelfRegistrationEnabled": "Selbstregistrierung ist aktiviert", diff --git a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/de.json b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/de.json index f66217156b..327e8b5a62 100644 --- a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/de.json +++ b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/de.json @@ -35,6 +35,7 @@ "PersonalSettingsSaved": "Persönliche Einstellungen gespeichert", "PasswordChanged": "Passwort geändert", "NewPasswordConfirmFailed": "Bitte bestätigen Sie das neue Passwort.", + "NewPasswordSameAsOld": "Das neue Passwort muss sich vom alten Passwort unterscheiden.", "Manage": "Verwalten", "MyAccount": "Mein Konto", "DisplayName:Abp.Account.IsSelfRegistrationEnabled": "Ist die Selbstregistrierung aktiviert", diff --git a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/el.json b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/el.json index e5af66d6fe..70f319968d 100644 --- a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/el.json +++ b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/el.json @@ -36,6 +36,7 @@ "PersonalSettingsSaved": "Οι προσωπικές ρυθμίσεις αποθηκεύτηκαν", "PasswordChanged": "Ο κωδικός πρόσβασης άλλαξε", "NewPasswordConfirmFailed": "Παρακαλώ επιβεβαιώστε τον νέο κωδικό πρόσβασης.", + "NewPasswordSameAsOld": "Ο νέος κωδικός πρόσβασης πρέπει να είναι διαφορετικός από τον τρέχοντα.", "Manage": "Διαχείρηση", "MyAccount": "Ο λογαριασμός μου", "DisplayName:Abp.Account.IsSelfRegistrationEnabled": "Είναι ενεργοποιημένη η αυτοεγγραφή", diff --git a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/en-GB.json b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/en-GB.json index 7bfcdccec7..404cd88c2c 100644 --- a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/en-GB.json +++ b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/en-GB.json @@ -35,6 +35,7 @@ "PersonalSettingsSaved": "Personal settings saved", "PasswordChanged": "Password changed", "NewPasswordConfirmFailed": "Please confirm the new password.", + "NewPasswordSameAsOld": "The new password must be different from the old one.", "Manage": "Manage", "MyAccount": "My account", "DisplayName:Abp.Account.IsSelfRegistrationEnabled": "Is self-registration enabled", diff --git a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/en.json b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/en.json index d5f881e365..a046aad12a 100644 --- a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/en.json +++ b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/en.json @@ -36,6 +36,7 @@ "PersonalSettingsSaved": "Personal settings saved", "PasswordChanged": "Password changed", "NewPasswordConfirmFailed": "Please confirm the new password.", + "NewPasswordSameAsOld": "New password must be different from the old one.", "Manage": "Manage", "MyAccount": "My account", "DisplayName:Abp.Account.IsSelfRegistrationEnabled": "Is self-registration enabled", diff --git a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/es-mx.json b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/es-mx.json index d6389de2a9..b3bcad86f9 100644 --- a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/es-mx.json +++ b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/es-mx.json @@ -32,6 +32,7 @@ "PersonalSettingsSaved": "Ajustes personales guardados", "PasswordChanged": "Cambia la contraseña", "NewPasswordConfirmFailed": "Por favor, confirme la nueva contraseña.", + "NewPasswordSameAsOld": "La nueva contraseña debe ser diferente de la contraseña actual.", "Manage": "Administrar", "MyAccount": "Mi cuenta" } diff --git a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/es.json b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/es.json index 9632dc91f2..0e883a1372 100644 --- a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/es.json +++ b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/es.json @@ -36,6 +36,7 @@ "PersonalSettingsSaved": "Ajustes personales guardados", "PasswordChanged": "Cambiar la contraseña", "NewPasswordConfirmFailed": "Por favor, confirme la nueva contraseña.", + "NewPasswordSameAsOld": "La nueva contraseña debe ser diferente de la contraseña actual.", "Manage": "Administrar", "MyAccount": "Mi cuenta", "DisplayName:Abp.Account.IsSelfRegistrationEnabled": "¿El auto-registro está habilitado?", diff --git a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/fa.json b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/fa.json index 7116a202eb..b417ec4d71 100644 --- a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/fa.json +++ b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/fa.json @@ -36,6 +36,7 @@ "PersonalSettingsSaved": "تنظیمات شخصی ذخیره گردید", "PasswordChanged": "گذرواژه تغییر کرد", "NewPasswordConfirmFailed": "لطفاً گذرواژه جدید را تأیید کنید.", + "NewPasswordSameAsOld": "گذرواژه جدید نباید با گذرواژه قبلی یکسان باشد.", "Manage": "مدیریت", "MyAccount": "حساب من", "DisplayName:Abp.Account.IsSelfRegistrationEnabled": "آیا امکان ثبت نام فعال است", diff --git a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/fi.json b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/fi.json index 42dfb59005..b917834a53 100644 --- a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/fi.json +++ b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/fi.json @@ -36,6 +36,7 @@ "PersonalSettingsSaved": "Henkilökohtaiset asetukset tallennettu", "PasswordChanged": "Salasana vaihdettu", "NewPasswordConfirmFailed": "Vahvista uusi salasana.", + "NewPasswordSameAsOld": "Uusi salasana ei voi olla sama kuin vanha salasana.", "Manage": "Hallitse", "MyAccount": "Tilini", "DisplayName:Abp.Account.IsSelfRegistrationEnabled": "Onko itserekisteröinti käytössä", diff --git a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/fr.json b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/fr.json index afce5f6bdd..d357e7fafd 100644 --- a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/fr.json +++ b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/fr.json @@ -36,6 +36,7 @@ "PersonalSettingsSaved": "Paramètres personnels enregistrés", "PasswordChanged": "Mot de passe changé", "NewPasswordConfirmFailed": "Veuillez confirmer le nouveau mot de passe.", + "NewPasswordSameAsOld": "Le nouveau mot de passe doit être différent de l'ancien.", "Manage": "Gérer", "MyAccount": "Mon compte", "DisplayName:Abp.Account.IsSelfRegistrationEnabled": "L’auto-inscription est-elle activée", diff --git a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/hi.json b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/hi.json index d406e3f6d5..0dedd78fb9 100644 --- a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/hi.json +++ b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/hi.json @@ -36,6 +36,7 @@ "PersonalSettingsSaved": "व्यक्तिगत सेटिंग्स सहेजे गए", "PasswordChanged": "पासवर्ड बदला गया", "NewPasswordConfirmFailed": "कृपया नए पासवर्ड की पुष्टि करें।", + "NewPasswordSameAsOld": "नया पासवर्ड वर्तमान पासवर्ड से एक ही होना चाहिए।", "Manage": "प्रबंधित", "MyAccount": "मेरा खाता", "DisplayName:Abp.Account.IsSelfRegistrationEnabled": "क्या स्व-पंजीकरण सक्षम है", diff --git a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/hu.json b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/hu.json index 655ac74c10..30f578cb08 100644 --- a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/hu.json +++ b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/hu.json @@ -36,6 +36,7 @@ "PersonalSettingsSaved": "Személyes beállítások mentve", "PasswordChanged": "Jelszó megváltoztatva", "NewPasswordConfirmFailed": "Kérjük, erősítse meg az új jelszót.", + "NewPasswordSameAsOld": "Az új jelszó nem lehet azonos a régi jelszóval.", "Manage": "Kezelés", "MyAccount": "A fiókom", "DisplayName:Abp.Account.IsSelfRegistrationEnabled": "Engedélyezve van az önregisztráció", diff --git a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/is.json b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/is.json index e592e956aa..744b483dba 100644 --- a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/is.json +++ b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/is.json @@ -35,6 +35,7 @@ "PersonalSettingsSaved": "Persónulegar stillingar vistaðar", "PasswordChanged": "Lykilorði breytt", "NewPasswordConfirmFailed": "Vinsamlegast staðfestu nýja lykilorðið.", + "NewPasswordSameAsOld": "Nýtt lykilorð verður að vera frábrugðið núverandi lykilorði.", "Manage": "Umsjá", "MyAccount": "Minn aðgangur", "DisplayName:Abp.Account.IsSelfRegistrationEnabled": "Er sjálfskráning virk", diff --git a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/it.json b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/it.json index 5c3dfb77ac..830a01e507 100644 --- a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/it.json +++ b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/it.json @@ -36,6 +36,7 @@ "PersonalSettingsSaved": "Impostazioni personali salvate", "PasswordChanged": "Password cambiata", "NewPasswordConfirmFailed": "Conferma la nuova password.", + "NewPasswordSameAsOld": "La nuova password deve essere diversa dalla vecchia.", "Manage": "Gestire", "MyAccount": "Il mio account", "DisplayName:Abp.Account.IsSelfRegistrationEnabled": "L'auto-registrazione è abilitata", diff --git a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/nl.json b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/nl.json index 19bc055db9..3238f1ceb9 100644 --- a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/nl.json +++ b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/nl.json @@ -35,6 +35,7 @@ "PersonalSettingsSaved": "Persoonlijke instellingen opgeslagen", "PasswordChanged": "Wachtwoord veranderd", "NewPasswordConfirmFailed": "Bevestig het nieuwe wachtwoord a.u.b.", + "NewPasswordSameAsOld": "Het nieuwe wachtwoord moet verschillen van het huidige wachtwoord.", "Manage": "Beheer", "MyAccount": "Mijn rekening", "DisplayName:Abp.Account.IsSelfRegistrationEnabled": "Is zelfregistratie ingeschakeld", diff --git a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/pl-PL.json b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/pl-PL.json index 21af5b9ce1..39bf144303 100644 --- a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/pl-PL.json +++ b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/pl-PL.json @@ -35,6 +35,7 @@ "PersonalSettingsSaved": "Zapisano ustawienia osobiste", "PasswordChanged": "Hasło zostało zmienione", "NewPasswordConfirmFailed": "Potwierdź nowe hasło.", + "NewPasswordSameAsOld": "Nowe hasło musi być inne niż poprzednie.", "Manage": "Zarządzać", "MyAccount": "Moje konto", "DisplayName:Abp.Account.IsSelfRegistrationEnabled": "Czy włączona jest samodzielna rejestracja?", diff --git a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/pt-BR.json b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/pt-BR.json index 71adf7be31..bf912a3d61 100644 --- a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/pt-BR.json +++ b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/pt-BR.json @@ -36,6 +36,7 @@ "PersonalSettingsSaved": "Configurações pessoais salvas", "PasswordChanged": "Senha alterada", "NewPasswordConfirmFailed": "Por favor, confirme a nova senha.", + "NewPasswordSameAsOld": "A nova senha deve ser diferente da senha atual.", "Manage": "Gerenciar", "MyAccount": "Minha conta", "DisplayName:Abp.Account.IsSelfRegistrationEnabled": "O autorregistro está habilitado", diff --git a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/ro-RO.json b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/ro-RO.json index 149ad71d95..29de263594 100644 --- a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/ro-RO.json +++ b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/ro-RO.json @@ -35,6 +35,7 @@ "PersonalSettingsSaved": "Setări personale salvate", "PasswordChanged": "Parola schimbată", "NewPasswordConfirmFailed": "Vă rugăm să confirmaţi noua parolă.", + "NewPasswordSameAsOld": "Noua parolă trebuie să fie diferită de cea curentă.", "Manage": "Administrează", "MyAccount": "Contul meu", "DisplayName:Abp.Account.IsSelfRegistrationEnabled": "Este înregistrarea personală activată", diff --git a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/ru.json b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/ru.json index 337bf2836a..2894feb09d 100644 --- a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/ru.json +++ b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/ru.json @@ -35,6 +35,7 @@ "PersonalSettingsSaved": "Персональные настройки сохранены", "PasswordChanged": "Пароль изменен", "NewPasswordConfirmFailed": "Пожалуйста подтвердите новый пароль.", + "NewPasswordSameAsOld": "Новый пароль не должен совпадать со старым.", "Manage": "Управление учетной записью", "MyAccount": "Мой аккаунт", "DisplayName:Abp.Account.IsSelfRegistrationEnabled": "Самостоятельная регистрация включена", diff --git a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/sk.json b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/sk.json index c0467110ae..37a1777351 100644 --- a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/sk.json +++ b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/sk.json @@ -36,6 +36,7 @@ "PersonalSettingsSaved": "Osobné nastavenia boli uložené", "PasswordChanged": "Heslo bolo zmenené", "NewPasswordConfirmFailed": "Prosím potvrďte nové heslo.", + "NewPasswordSameAsOld": "Nové heslo musí byť odlišné od aktuálneho.", "Manage": "Spravovať", "MyAccount": "Môj účet", "DisplayName:Abp.Account.IsSelfRegistrationEnabled": "Je povolená samoregistrácia", diff --git a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/sl.json b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/sl.json index 5298b8d968..f8e68ca7e5 100644 --- a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/sl.json +++ b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/sl.json @@ -36,6 +36,7 @@ "PersonalSettingsSaved": "Osebne nastavitve so shranjene", "PasswordChanged": "Geslo je spremenjeno", "NewPasswordConfirmFailed": "Prosimo potrdite novo geslo.", + "NewPasswordSameAsOld": "Novo geslo mora biti drugačno od starega.", "Manage": "Upravljaj", "MyAccount": "Moj račun", "DisplayName:Abp.Account.IsSelfRegistrationEnabled": "Je lastna registracija uporabnika omogočena", diff --git a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/tr.json b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/tr.json index 6edaf2c1c4..116ddd2508 100644 --- a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/tr.json +++ b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/tr.json @@ -36,6 +36,7 @@ "PersonalSettingsSaved": "Kişisel ayarlar kaydedildi", "PasswordChanged": "Şifre değiştirildi", "NewPasswordConfirmFailed": "Lütfen yeni şifreyi onaylayın.", + "NewPasswordSameAsOld": "Yeni şifre eski şifre ile aynı olamaz.", "Manage": "Manage", "MyAccount": "Hesabım", "DisplayName:Abp.Account.IsSelfRegistrationEnabled": "self-registration etkin mi ?", diff --git a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/vi.json b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/vi.json index 430bdd3c26..de82983e22 100644 --- a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/vi.json +++ b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/vi.json @@ -35,6 +35,7 @@ "PersonalSettingsSaved": "Đã lưu cài đặt cá nhân", "PasswordChanged": "mật khẩu đã được thay đổi", "NewPasswordConfirmFailed": "Vui lòng xác nhận mật khẩu mới.", + "NewPasswordSameAsOld": "Mật khẩu mới không được giống như mật khẩu cũ.", "Manage": "Quản lý", "MyAccount": "Tài khoản của tôi", "DisplayName:Abp.Account.IsSelfRegistrationEnabled": "Tự đăng ký có được bật không", diff --git a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/zh-Hans.json b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/zh-Hans.json index 1c51fb1fa9..9b723be748 100644 --- a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/zh-Hans.json +++ b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/zh-Hans.json @@ -36,6 +36,7 @@ "PersonalSettingsSaved": "个人设置已保存", "PasswordChanged": "修改密码", "NewPasswordConfirmFailed": "请确认新密码", + "NewPasswordSameAsOld": "新密码不能与旧密码相同", "Manage": "管理", "MyAccount": "我的账户", "DisplayName:Abp.Account.IsSelfRegistrationEnabled": "启用自行注册", diff --git a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/zh-Hant.json b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/zh-Hant.json index dc0f6a94b9..794bf2afb2 100644 --- a/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/zh-Hant.json +++ b/modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/zh-Hant.json @@ -36,6 +36,7 @@ "PersonalSettingsSaved": "個人設置已保存", "PasswordChanged": "修改密碼", "NewPasswordConfirmFailed": "請確認新密碼", + "NewPasswordSameAsOld": "新密碼不能與舊密碼相同", "Manage": "管理", "MyAccount": "我的賬戶", "DisplayName:Abp.Account.IsSelfRegistrationEnabled": "啟用自行註冊", diff --git a/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Components/ProfileManagementGroup/Password/Default.js b/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Components/ProfileManagementGroup/Password/Default.js index 4410fd9e46..e2f2fd4969 100644 --- a/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Components/ProfileManagementGroup/Password/Default.js +++ b/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Components/ProfileManagementGroup/Password/Default.js @@ -22,7 +22,12 @@ if (input.currentPassword && input.currentPassword == ''){ return; } - + + if(input.currentPassword == input.newPassword) { + abp.message.error(l('NewPasswordSameAsOld')); + return; + } + volo.abp.account.profile.changePassword(input).then(function (result) { abp.message.success(l('PasswordChanged')); abp.event.trigger('passwordChanged');