Exemple #1
0
 public Task <IActionResult> SetPassword(SetPasswordModel model)
 {
     return(MakeChangeAsync(id => userService.SetPasswordAsync(id, model.Password),
                            T.Get("users.profile.setPasswordDone"), model));
 }
Exemple #2
0
 public Task <IActionResult> SetPassword(SetPasswordModel model)
 {
     return(MakeChangeAsync(user => userManager.AddPasswordAsync(user, model.Password),
                            "Password set successfully."));
 }
Exemple #3
0
 public Task <IActionResult> SetPassword(SetPasswordModel model)
 {
     return(MakeChangeAsync(u => userManager.AddPasswordAsync(u, model.Password),
                            T.Get("users.profile.setPasswordDone"), model));
 }