We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75c9cc3 commit 8e63872Copy full SHA for 8e63872
GZCTF/Middlewares/PrivilegeAuthentication.cs
@@ -40,11 +40,8 @@ public async Task OnAuthorizationAsync(AuthorizationFilterContext context)
40
return;
41
}
42
43
- if (DateTimeOffset.UtcNow - user.LastVisitedUTC > TimeSpan.FromSeconds(5))
44
- {
45
- user.UpdateByHttpContext(context.HttpContext);
46
- await userManager.UpdateAsync(user);
47
- }
+ user.UpdateByHttpContext(context.HttpContext);
+ await userManager.UpdateAsync(user);
48
49
if (user.Role < RequiredPrivilege)
50
{
0 commit comments