Skip to content

Commit 83612db

Browse files
authored
Merge pull request #1 from andrewgunn/master
Mark methods as virtual
2 parents 99edc5a + efc3432 commit 83612db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ScottBrady91.AspNetCore.Identity.BCryptPasswordHasher/BCryptPasswordHasher.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ public BCryptPasswordHasher(IOptions<BCryptPasswordHasherOptions> optionsAccesso
1313
options = optionsAccessor?.Value ?? new BCryptPasswordHasherOptions();
1414
}
1515

16-
public string HashPassword(TUser user, string password)
16+
public virtual string HashPassword(TUser user, string password)
1717
{
1818
if (password == null) throw new ArgumentNullException(nameof(password));
1919

2020
return BCrypt.Net.BCrypt.HashPassword(password, options.WorkFactor, options.EnhancedEntropy);
2121
}
2222

23-
public PasswordVerificationResult VerifyHashedPassword(TUser user, string hashedPassword, string providedPassword)
23+
public virtual PasswordVerificationResult VerifyHashedPassword(TUser user, string hashedPassword, string providedPassword)
2424
{
2525
if (hashedPassword == null) throw new ArgumentNullException(nameof(hashedPassword));
2626
if (providedPassword == null) throw new ArgumentNullException(nameof(providedPassword));
@@ -30,4 +30,4 @@ public PasswordVerificationResult VerifyHashedPassword(TUser user, string hashed
3030
return isValid ? PasswordVerificationResult.Success : PasswordVerificationResult.Failed;
3131
}
3232
}
33-
}
33+
}

0 commit comments

Comments
 (0)