[ADD] Pwd validator, reworked classes
This commit is contained in:
@@ -3,7 +3,7 @@ using DotBased.AspNet.Authority.Services;
|
||||
|
||||
namespace DotBased.AspNet.Authority.Validators;
|
||||
|
||||
public interface IPasswordValidator<TUser>
|
||||
public interface IPasswordValidator<TUser> where TUser : class
|
||||
{
|
||||
public Task<ValidationResult> ValidatePasswordAsync(AuthorityUserManager<TUser> userManager, string password);
|
||||
public Task<ValidationResult> ValidatePasswordAsync(AuthorityUserManager<TUser> userManager, TUser user, string password);
|
||||
}
|
Reference in New Issue
Block a user