ignore game version
This commit is contained in:
@@ -120,9 +120,11 @@ public class ProfileService(
|
|||||||
if (string.IsNullOrWhiteSpace(command.AppVersion))
|
if (string.IsNullOrWhiteSpace(command.AppVersion))
|
||||||
return LoginProfileResult.Fail("App version is required.");
|
return LoginProfileResult.Fail("App version is required.");
|
||||||
|
|
||||||
|
var ignoreGameVersion = await configService.GetAsync("Profiles:IgnoreGameVersion", true, ct);
|
||||||
|
|
||||||
var isValidGameVersion = await gameVersionRepository.IsValidAsync(command.AppVersion, ct);
|
var isValidGameVersion = await gameVersionRepository.IsValidAsync(command.AppVersion, ct);
|
||||||
if (!isValidGameVersion)
|
if (!isValidGameVersion && !ignoreGameVersion)
|
||||||
return LoginProfileResult.Fail("A new update is available! Go to https://recroom.baby to download the latest update.");
|
return LoginProfileResult.Fail("A new update is available! Go to https://recroom.baby/ to download the latest update.");
|
||||||
|
|
||||||
// 2. Validate Platform Authentication
|
// 2. Validate Platform Authentication
|
||||||
var validator = validators.FirstOrDefault(x => x.PlatformType == command.PlatformType);
|
var validator = validators.FirstOrDefault(x => x.PlatformType == command.PlatformType);
|
||||||
|
|||||||
Reference in New Issue
Block a user