logout enpoint created

pull/2733/head
AkinCam 6 years ago
parent 5ceb6b7997
commit 2904cb77b7

@ -35,7 +35,7 @@ namespace Volo.Abp.Account.Web.Areas.Account.Controllers
ValidateLoginInfo(login);
await ReplaceEmailToUsernameOfInputIfNeeds(login).ConfigureAwait(false);
return GetAbpLoginResult(await _signInManager.PasswordSignInAsync(
login.UserNameOrEmailAddress,
login.Password,
@ -44,6 +44,14 @@ namespace Volo.Abp.Account.Web.Areas.Account.Controllers
).ConfigureAwait(false));
}
[HttpGet]
[Route("logout")]
public virtual async Task Logout()
{
await _signInManager.SignOutAsync();
}
[HttpPost]
[Route("checkPassword")]
public virtual async Task<AbpLoginResult> CheckPassword(UserLoginInfo login)

Loading…
Cancel
Save