I want to add verification that the password does not contain the username in the ASP.NET ID environment.
Implementing a custom PasswordValidator should do the job fine, but how can I access the username?
public class CustomPasswordValidator : PasswordValidator { public override async Task<IdentityResult> ValidateAsync(string password) { var result = await base.ValidateAsync(password);
source share