30 references to PasswordVerificationResult
Microsoft.Extensions.Identity.Core (30)
IPasswordHasher.cs (3)
21/// Returns a <see cref="PasswordVerificationResult"/> indicating the result of a password hash comparison. 26/// <returns>A <see cref="PasswordVerificationResult"/> indicating the result of a password hash comparison.</returns> 28PasswordVerificationResult VerifyHashedPassword(TUser user, string hashedPassword, string providedPassword);
PasswordHasher.cs (12)
159/// Returns a <see cref="PasswordVerificationResult"/> indicating the result of a password hash comparison. 164/// <returns>A <see cref="PasswordVerificationResult"/> indicating the result of a password hash comparison.</returns> 166public virtual PasswordVerificationResult VerifyHashedPassword(TUser user, string hashedPassword, string providedPassword) 176return PasswordVerificationResult.Failed; 185? PasswordVerificationResult.SuccessRehashNeeded 186: PasswordVerificationResult.Success; 190return PasswordVerificationResult.Failed; 199return PasswordVerificationResult.SuccessRehashNeeded; 205return PasswordVerificationResult.SuccessRehashNeeded; 208return PasswordVerificationResult.Success; 212return PasswordVerificationResult.Failed; 216return PasswordVerificationResult.Failed; // unknown format marker
UserManager.cs (10)
768if (result == PasswordVerificationResult.Failed) 783private async Task<(PasswordVerificationResult? result, bool userMissing)> CheckPasswordCoreAsync(TUser user, string password) 792var result = await VerifyPasswordAsync(passwordStore, user, password).ConfigureAwait(false); 794if (result == PasswordVerificationResult.SuccessRehashNeeded) 900if (await VerifyPasswordAsync(passwordStore, user, currentPassword).ConfigureAwait(false) != PasswordVerificationResult.Failed) 941/// Returns a <see cref="PasswordVerificationResult"/> indicating the result of a password hash comparison. 947/// The <see cref="Task"/> that represents the asynchronous operation, containing the <see cref="PasswordVerificationResult"/> 950protected virtual async Task<PasswordVerificationResult> VerifyPasswordAsync(IUserPasswordStore<TUser> store, TUser user, string password) 955return PasswordVerificationResult.Failed; 957var result = PasswordHasher.VerifyHashedPassword(user, hash, password);
UserManagerMetrics.cs (5)
127internal void CheckPassword(string userType, bool? userMissing, PasswordVerificationResult? result, Exception? exception = null) 237private static string GetPasswordResult(PasswordVerificationResult? result, bool? passwordMissing, bool? userMissing) 241(PasswordVerificationResult.Success, false, false) => "success", 242(PasswordVerificationResult.SuccessRehashNeeded, false, false) => "success_rehash_needed", 243(PasswordVerificationResult.Failed, false, false) => "failure",