This commit is contained in:
kajvan
2023-10-10 18:37:21 +02:00
parent f7e668c8fb
commit 7c739cb3fe
5 changed files with 396 additions and 54 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ class PassPolicy {
return { valid: true };
}
async CheckDifference(newPassword, oldPassword, neededDifference) {
CheckDifference(newPassword, oldPassword, neededDifference) {
//check if new password is different from old password
if (newPassword === oldPassword) {
return { valid: false, message: "New password must be different from old password." };