Equipment is kész.
This commit is contained in:
@@ -25,7 +25,14 @@ namespace WorkFlowCheck.Web.Middleware
|
||||
{
|
||||
context.User = new ClaimsPrincipal(new ClaimsIdentity(claims, "jwt"));
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
// Ha token van, de invalid, töröljük a cookiet
|
||||
if (!string.IsNullOrEmpty(token))
|
||||
{
|
||||
context.Response.Cookies.Delete("AuthToken");
|
||||
}
|
||||
}
|
||||
await _next(context);
|
||||
}
|
||||
private bool ValidateToken(string token, out Claim[] claims)
|
||||
|
||||
Reference in New Issue
Block a user