Skip to content

Commit

Permalink
Update old sessions to expire on the spot, so they get refreshed when…
Browse files Browse the repository at this point in the history
… used
  • Loading branch information
LucHeart committed Oct 15, 2024
1 parent 31fc165 commit 6419dc6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public static bool UpdateOlderLoginSessions(LoginSession session)

if (session.Expires == null)
{
session.Expires = DateTime.UtcNow.Add(Constants.LoginSessionLifetime);
session.Expires = DateTime.UtcNow;
save = true;
}

Expand Down

0 comments on commit 6419dc6

Please sign in to comment.