mirror of
https://github.com/bitwarden/server.git
synced 2025-06-23 04:08:48 -05:00
Fixed order of initialization.
This commit is contained in:
parent
fb1b39e7c3
commit
038f666899
@ -78,8 +78,8 @@ public abstract class BaseRequestValidator<T> where T : class
|
||||
CustomValidatorRequestContext validatorContext)
|
||||
{
|
||||
// 1. We need to check if the user's master password hash is correct.
|
||||
var user = validatorContext.User;
|
||||
var valid = await ValidateContextAsync(context, validatorContext);
|
||||
var user = validatorContext.User;
|
||||
if (!valid)
|
||||
{
|
||||
await UpdateFailedAuthDetailsAsync(user, false, !validatorContext.KnownDevice);
|
||||
|
Loading…
x
Reference in New Issue
Block a user