mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-02 19:44:02 +08:00
#18264: Fixing SetPasswordEncryted
Work Item: 18264 --HG-- branch : 1.x
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user