mirror of
https://github.com/bitwarden/server
synced 2026-01-02 08:33:48 +00:00
fix(auth-validator): [PM-22975] Client Version Validator - Fixing some white spaces as well as the renaming of a file
This commit is contained in:
@@ -111,7 +111,7 @@ public abstract class BaseRequestValidator<T> where T : class
|
||||
}
|
||||
else
|
||||
{
|
||||
// 1. We need to check if the user's master password hash is correct.
|
||||
// 1. We need to check if the user is legitimate via the appropriate mechanism through.
|
||||
var valid = await ValidateContextAsync(context, validatorContext);
|
||||
var user = validatorContext.User;
|
||||
if (!valid)
|
||||
@@ -122,10 +122,11 @@ public abstract class BaseRequestValidator<T> where T : class
|
||||
return;
|
||||
}
|
||||
|
||||
// 1.5 We need to check now the version number
|
||||
// 1.5 Now check the version number of the client. Do this after ValidateContextAsync so that
|
||||
// we prevent account enumeration. If we were to do this before we would validate that a given user
|
||||
// could exist
|
||||
await ValidateClientVersionAsync(context, validatorContext);
|
||||
|
||||
|
||||
// 2. Decide if this user belongs to an organization that requires SSO.
|
||||
validatorContext.SsoRequired = await RequireSsoLoginAsync(user, request.GrantType);
|
||||
if (validatorContext.SsoRequired)
|
||||
|
||||
Reference in New Issue
Block a user