Esempio n. 1
0
 public ActionResult Logout()
 {
     FormsAuthentication.SignOut();
     //_sessionStorage.AddValueWithKey(SessionStorage.LOGIN_MESSAGE, "Please login to view that page.");
     _sessionStorage.AddValueWithKey(SessionStorage.LOGIN_MESSAGE, "Войдите для просмотра страницы.");
     return(RedirectToAction("Login"));
 }
Esempio n. 2
0
 public ActionResult ChangePassword(SettingsViewModel model)
 {
     _userService.ChangePassword(model.UserId, model.PasswordModel.Password);
     _sessionStorage.AddValueWithKey(SessionStorage.SETTINGS_MESSAGE_KEY, "Your password has been changed.");
     return(RedirectToAction("Settings"));
 }