public async Task <IActionResult> Login(LoginViewModel model, string returnUrl) { if (ModelState.IsValid) { bool result = await _userEngine.Login(model.UserName, model.Password); if (result && !string.IsNullOrEmpty(returnUrl) && Url.IsLocalUrl(returnUrl)) { return(Redirect(returnUrl)); } return(result ? RedirectToAction("Index", "Team") : RedirectToAction("Index", "Login", new { message = "<p>The user/ password pair is incorrect!</p>" })); } return(RedirectToAction("Index", "Login", new { message = GetModelStateErrorsHtmlString() })); }
public object Checklogin(string Gebruikersnaam, string Password) { return(Interface.Login(Gebruikersnaam, Password)); }