1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-22 02:51:33 +01:00

A few fixes to TwoFactorProvider

This commit is contained in:
Kyle Spearrin 2016-07-23 01:34:22 -04:00
parent 939a9e25da
commit 452d74a266
2 changed files with 2 additions and 1 deletions

View File

@ -200,6 +200,7 @@ namespace Bit.Api.Controllers
throw new BadRequestException("Token", "Invalid token.");
}
user.TwoFactorProvider = TwoFactorProvider.Authenticator;
user.TwoFactorEnabled = model.Enabled.Value;
await _userService.SaveUserAsync(user);

View File

@ -27,7 +27,7 @@ BEGIN
[Culture] = @Culture,
[SecurityStamp] = @SecurityStamp,
[TwoFactorEnabled] = @TwoFactorEnabled,
[TwoFactorProvider] = TwoFactorProvider,
[TwoFactorProvider] = @TwoFactorProvider,
[AuthenticatorKey] = @AuthenticatorKey,
[CreationDate] = @CreationDate,
[RevisionDate] = @RevisionDate