mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
Add /api/Login/Logout endpoint.
This commit is contained in:
parent
907f33e713
commit
10f7a40419
@ -55,5 +55,12 @@ namespace Remotely.Server.API
|
||||
DataService.WriteEvent($"API login unsuccessful due to bad attempt for {login.Email}.");
|
||||
return BadRequest();
|
||||
}
|
||||
|
||||
[HttpGet("Logout")]
|
||||
public async Task<IActionResult> Logout()
|
||||
{
|
||||
await SignInManager.SignOutAsync();
|
||||
return Ok();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user