コード例 #1
0
 public AuthenticateController(UserManager <ApplicationUser> userManager, TokenGenerator tokenGenerator)
 {
     this.userManager           = userManager;
     this.customPasswordHasher  = new CustomPasswordHasher();
     userManager.PasswordHasher = customPasswordHasher;
     this.tokenGenerator        = tokenGenerator;
 }
コード例 #2
0
 public UserManageController(UserManager <ApplicationUser> userManager)
 {
     this.userManager           = userManager;
     this.customPasswordHasher  = new CustomPasswordHasher();
     userManager.PasswordHasher = customPasswordHasher;
 }