Reject unapproved tokens on login

This commit is contained in:
jvyden 2021-12-13 18:36:29 -05:00
parent e7f64db812
commit 9157fd39ae
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278

View file

@ -97,6 +97,8 @@ namespace LBPUnion.ProjectLighthouse.Controllers
await this.database.SaveChangesAsync();
if (!token.Approved) return this.StatusCode(403, "");
Logger.Log($"Successfully logged in user {user.Username} as {token.GameVersion} client ({titleId})", LoggerLevelLogin.Instance);
// Create a new room on LBP2+/Vita