Skip to content

Commit

Permalink
Update forgotpassword.js
Browse files Browse the repository at this point in the history
  • Loading branch information
camillereaves authored Sep 25, 2023
1 parent 21a38ee commit 9382f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/forgotpassword.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ async function validateNewPassword(password, user){
console.log("has old passwords");
let oldPasswords = user.oldPasswords;
oldPasswords.forEach((pass) => {
if(String(pass) = String(password)){
if(String(pass) == String(password)){
console.log("old password used");
return false;
}
Expand Down

0 comments on commit 9382f6e

Please sign in to comment.