Skip to content

Commit 81c3271

Browse files
author
perploug
committed
Removes pre-checkpassword check
1 parent c2f34ce commit 81c3271

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/umbraco.providers/UsersMembershipProvider.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -497,19 +497,6 @@ public override bool ValidateUser(string username, string password)
497497
return false;
498498
}
499499

500-
//Due to the way this legacy provider worked, when it 'validated' a password passed in, it would allow
501-
// having the already hashed/encrypted password checked directly - this is bad but hey, we gotta support legacy
502-
// don't we.
503-
504-
//So, first we'll check if the user object's db stored password (already hashed/encrypted in the db) matches the password that
505-
// has been passed in, if so then we will confirm that it is valid. If it doesn't we'll attempt to hash/encrypt the passed in
506-
// password and then validate it - the way it is supposed to be done.
507-
508-
if (user.Password == password)
509-
{
510-
return true;
511-
}
512-
513500
return CheckPassword(password, user.Password);
514501
}
515502
}

0 commit comments

Comments
 (0)