I made UserValidator Like this
UserValidator = new UserValidator<User, long>(this)
{
RequireUniqueEmail = false,
AllowOnlyAlphanumericUserNames = false
};
in the constructor of UserManager, but it still has Error on Emails. I want to Use One Email for All users and Authenticate them only by UserName;
I wrote PasswordValidator like this
PasswordValidator = new PasswordValidator() {
RequiredLength = 6,
RequireNonLetterOrDigit = false,
RequireDigit = false,
RequireLowercase = false,
RequireUppercase = false
};
but I Can't create UserValidator because of its arguments
UserValidator = new UserValidator<ApplicationUser>(manager)
{
AllowOnlyAlphanumericUserNames = false,
RequireUniqueEmail = false
};
what is "ApplicationUser" and "manager" in Module Zero?
Can You help me to override "UserValidator" ?
You are right , but "UserValidator" is not in override methods,
How can I override it?
How can I config Identity with "ApplicationUserManager" and customize "UserValidator" and "PasswordValidator" and ...?
<cite>hikalkan: </cite> Can you open an issue for that on github (<a class="postlink" href="https://github.com/aspnetboilerplate/module-zero/issues/new">https://github.com/aspnetboilerplate/mo ... issues/new</a>)? You may use SetRoles method for now.
Thank You SetRoles works Great !
I use this function to remove roles, why user roles remain ?
public async Task DeleteRolesAsync(List<string> deleteList, long userId)
{
foreach (var roleName in deleteList)
{
IdentityResult deletionResult = await _userManager.RemoveFromRoleAsync(userId, roleName);
}
}
I add Some code in header.js and it works !
$rootScope.$on('$routeChangeStart', function() {
ngProgress.start();
});
$rootScope.$on('$routeChangeSuccess', function() {
ngProgress.complete();
});
Can We Use ngProgress ? How?
Can I Show a progressbar when views change?