ignore game version
This commit is contained in:
@@ -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
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user