ignore game version

This commit is contained in:
2026-07-29 05:03:04 -07:00
parent 28b9a8b47e
commit c22ac451c0

View File

@@ -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);