[CHANGE] Removed generics and using base classes
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using DotBased.AspNet.Authority.Managers;
|
||||
using DotBased.AspNet.Authority.Models.Authority;
|
||||
using DotBased.AspNet.Authority.Models.Validation;
|
||||
using DotBased.Extensions;
|
||||
|
||||
@@ -8,12 +9,12 @@ namespace DotBased.AspNet.Authority.Validators;
|
||||
/// Validates the password against the options that is configured.
|
||||
/// </summary>
|
||||
/// <typeparam name="TUser">The user model used.</typeparam>
|
||||
public class PasswordOptionsValidator<TUser> : IPasswordValidator<TUser> where TUser : class
|
||||
public class PasswordOptionsValidator : IPasswordValidator
|
||||
{
|
||||
private const string ValidatorId = "Authority.Validator.Password.Options";
|
||||
private const string ValidationBase = "Authority.Validation.Password";
|
||||
|
||||
public async Task<ValidationResult> ValidatePasswordAsync(AuthorityUserManager<TUser> userManager, TUser user, string password)
|
||||
public async Task<ValidationResult> ValidatePasswordAsync(AuthorityUserManager userManager, AuthorityUser user, string password)
|
||||
{
|
||||
if (userManager == null)
|
||||
{
|
||||
|
Reference in New Issue
Block a user