Browse Source

Merge pull request #2733 from abpframework/akin/created-logout-endpoint

Akin/created logout endpoint
pull/2751/head
Alper Ebicoglu 7 years ago
committed by GitHub
parent
commit
e1a404a424
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      modules/account/src/Volo.Abp.Account.Web/Areas/Account/Controllers/AccountController.cs

9
modules/account/src/Volo.Abp.Account.Web/Areas/Account/Controllers/AccountController.cs

@ -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,13 @@ 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