Base solution for your next web application

Activities of "behiunforgiven"

Answer

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;

Answer

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?

Answer

Can You help me to override "UserValidator" ?

Answer

You are right , but "UserValidator" is not in override methods,

How can I override it?

Question

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?

Showing 21 to 30 of 33 entries