Skip to content

Commit

Permalink
Automatically verify IP upon successful login (#677)
Browse files Browse the repository at this point in the history
  • Loading branch information
jvyden authored Oct 20, 2024
2 parents 84e41ec + a4a978a commit f64450a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,10 @@ public class AuthenticationEndpoints : EndpointGroup

// Mark the user as disconnected from the presence server
database.SetUserPresenceAuthToken(user, null);


if (!database.IsIpVerified(user, ipAddress))
database.AddVerifiedIp(user, ipAddress, timeProvider);

context.Logger.LogInfo(BunkumCategory.Authentication, $"{user} successfully logged in on {game} via {platform}");

if (game == TokenGame.LittleBigPlanetPSP)
Expand Down

0 comments on commit f64450a

Please sign in to comment.