1
0
mirror of https://github.com/bitwarden/server synced 2025-12-24 04:03:25 +00:00

Remove block legacy users feature flag (#5212)

This commit is contained in:
Bernd Schoolmann
2025-01-10 11:55:40 +01:00
committed by GitHub
parent ce2ecf9da0
commit 8a68f075cc
3 changed files with 3 additions and 8 deletions

View File

@@ -183,13 +183,10 @@ public abstract class BaseRequestValidator<T> where T : class
}
// 5. Force legacy users to the web for migration
if (FeatureService.IsEnabled(FeatureFlagKeys.BlockLegacyUsers))
if (UserService.IsLegacyUser(user) && request.ClientId != "web")
{
if (UserService.IsLegacyUser(user) && request.ClientId != "web")
{
await FailAuthForLegacyUserAsync(user, context);
return;
}
await FailAuthForLegacyUserAsync(user, context);
return;
}
await BuildSuccessResultAsync(user, context, validatorContext.Device, returnRememberMeToken);