Skip to content

Commit

Permalink
fix:Password verification
Browse files Browse the repository at this point in the history
  • Loading branch information
wzh425 committed Apr 13, 2024
1 parent d78b931 commit 4160d20
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,11 @@ public User(Guid id,
Landline = landline;
Gender = gender == default ? GenderTypes.Male : gender;
Avatar = string.IsNullOrEmpty(avatar) ? DefaultUserAttributes.GetDefaultAvatar(Gender) : avatar;
PasswordType = passwordType ?? PasswordType.MD5;
Password = password;
var value = VerifyPhonNumberEmail(phoneNumber, email);
Account = string.IsNullOrEmpty(account) ? value : account;
DisplayName = string.IsNullOrEmpty(displayName) ? value : displayName;
PasswordType = passwordType ?? PasswordType.MD5;
}

public User(string? name,
Expand Down

0 comments on commit 4160d20

Please sign in to comment.