From 1e598d49bb9d1f07246a8c3fd1aef1e243a6ff02 Mon Sep 17 00:00:00 2001 From: Henry Asbridge Date: Sat, 2 Nov 2024 11:30:48 +0000 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Josh --- .../Controllers/Login/LoginController.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ProjectLighthouse.Servers.GameServer/Controllers/Login/LoginController.cs b/ProjectLighthouse.Servers.GameServer/Controllers/Login/LoginController.cs index 082a560e..077f1b00 100644 --- a/ProjectLighthouse.Servers.GameServer/Controllers/Login/LoginController.cs +++ b/ProjectLighthouse.Servers.GameServer/Controllers/Login/LoginController.cs @@ -24,7 +24,6 @@ public class LoginController : ControllerBase { this.database = database; } - [HttpPost] public async Task Login() { @@ -70,7 +69,7 @@ public class LoginController : ControllerBase switch (npTicket.Platform) { case Platform.RPCS3: - user = await database.Users.FirstOrDefaultAsync(u => u.LinkedRpcnId == npTicket.UserId); + user = await this.database.Users.FirstOrDefaultAsync(u => u.LinkedRpcnId == npTicket.UserId); break; case Platform.PS3: case Platform.Vita: