mirror of
https://github.com/bitwarden/server.git
synced 2025-05-20 11:04:31 -05:00
A few fixes to TwoFactorProvider
This commit is contained in:
parent
939a9e25da
commit
452d74a266
@ -200,6 +200,7 @@ namespace Bit.Api.Controllers
|
|||||||
throw new BadRequestException("Token", "Invalid token.");
|
throw new BadRequestException("Token", "Invalid token.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
user.TwoFactorProvider = TwoFactorProvider.Authenticator;
|
||||||
user.TwoFactorEnabled = model.Enabled.Value;
|
user.TwoFactorEnabled = model.Enabled.Value;
|
||||||
await _userService.SaveUserAsync(user);
|
await _userService.SaveUserAsync(user);
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ BEGIN
|
|||||||
[Culture] = @Culture,
|
[Culture] = @Culture,
|
||||||
[SecurityStamp] = @SecurityStamp,
|
[SecurityStamp] = @SecurityStamp,
|
||||||
[TwoFactorEnabled] = @TwoFactorEnabled,
|
[TwoFactorEnabled] = @TwoFactorEnabled,
|
||||||
[TwoFactorProvider] = TwoFactorProvider,
|
[TwoFactorProvider] = @TwoFactorProvider,
|
||||||
[AuthenticatorKey] = @AuthenticatorKey,
|
[AuthenticatorKey] = @AuthenticatorKey,
|
||||||
[CreationDate] = @CreationDate,
|
[CreationDate] = @CreationDate,
|
||||||
[RevisionDate] = @RevisionDate
|
[RevisionDate] = @RevisionDate
|
||||||
|
Loading…
x
Reference in New Issue
Block a user