public AuthenticateController(UserManager <ApplicationUser> userManager, TokenGenerator tokenGenerator)
 {
     this.userManager           = userManager;
     this.customPasswordHasher  = new CustomPasswordHasher();
     userManager.PasswordHasher = customPasswordHasher;
     this.tokenGenerator        = tokenGenerator;
 }
 public UserManageController(UserManager <ApplicationUser> userManager)
 {
     this.userManager           = userManager;
     this.customPasswordHasher  = new CustomPasswordHasher();
     userManager.PasswordHasher = customPasswordHasher;
 }