diff --git a/src/RecNet.Application/Profiles/ProfileService.cs b/src/RecNet.Application/Profiles/ProfileService.cs index 67fe256..469274a 100644 --- a/src/RecNet.Application/Profiles/ProfileService.cs +++ b/src/RecNet.Application/Profiles/ProfileService.cs @@ -120,9 +120,11 @@ public class ProfileService( if (string.IsNullOrWhiteSpace(command.AppVersion)) return LoginProfileResult.Fail("App version is required."); + var ignoreGameVersion = await configService.GetAsync("Profiles:IgnoreGameVersion", true, ct); + var isValidGameVersion = await gameVersionRepository.IsValidAsync(command.AppVersion, ct); - if (!isValidGameVersion) - return LoginProfileResult.Fail("A new update is available! Go to https://recroom.baby to download the latest update."); + if (!isValidGameVersion && !ignoreGameVersion) + return LoginProfileResult.Fail("A new update is available! Go to https://recroom.baby/ to download the latest update."); // 2. Validate Platform Authentication var validator = validators.FirstOrDefault(x => x.PlatformType == command.PlatformType); @@ -197,4 +199,4 @@ public class ProfileService( : null }; } -} +} \ No newline at end of file