change something
This commit is contained in:
parent
120adf806d
commit
8798c8999d
1 changed files with 2 additions and 4 deletions
|
@ -45,11 +45,9 @@ internal class SessionAuthenticationHandler(
|
||||||
|
|
||||||
var user = await authService.GetUserWithId(session.UserId);
|
var user = await authService.GetUserWithId(session.UserId);
|
||||||
|
|
||||||
if (user is null)
|
if (user is null)
|
||||||
{
|
{
|
||||||
await authService.DeleteSession(sessionId);
|
return await FailAndDeleteSession(sessionId);
|
||||||
this.Context.DeleteSession();
|
|
||||||
return AuthenticateResult.Fail("invalid session");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (session.ExpiresSoon)
|
if (session.ExpiresSoon)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue