public ActionResult LoginMember(LoginFormViewModel vm) { if (!ModelState.IsValid) { return CurrentUmbracoPage(); } if (Members.Login(vm.Email, vm.Password)) { FormsAuthentication.SetAuthCookie(vm.Email, vm.RememberMe); return RedirectToCurrentUmbracoUrl(); } ModelState.AddModelError(string.Empty, "Login failed."); return CurrentUmbracoPage(); }
public LoginViewModel() { Form = new LoginFormViewModel(); }