#18264: Fixing SetPasswordEncryted

Work Item: 18264

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2011-12-15 17:34:20 -08:00
parent a34292e2f0
commit 660ce58382

View File

@@ -215,7 +215,8 @@ namespace Orchard.Users.Services {
private void SetPasswordEncrypted(UserPartRecord partRecord, string password) {
partRecord.Password = Convert.ToBase64String(_encryptionService.Encode(Encoding.UTF8.GetBytes(password)));
partRecord.PasswordSalt = null;
partRecord.PasswordSalt = null;
partRecord.PasswordFormat = MembershipPasswordFormat.Encrypted;
}
private bool ValidatePasswordEncrypted(UserPartRecord partRecord, string password) {