1
0
mirror of https://github.com/bitwarden/server synced 2026-01-04 09:33:40 +00:00

Require 2FA token in order to disiable 2FA. Added 2FA recovery code to data/domain model and exposed recover and regenerate 2FA APIs

This commit is contained in:
Kyle Spearrin
2016-11-14 21:13:53 -05:00
parent 17f8d0f677
commit e68ed04f77
8 changed files with 104 additions and 23 deletions

View File

@@ -10,6 +10,7 @@
@TwoFactorEnabled BIT,
@TwoFactorProvider TINYINT,
@AuthenticatorKey NVARCHAR(50),
@TwoFactorRecoveryCode NVARCHAR(32),
@CreationDate DATETIME2(7),
@RevisionDate DATETIME2(7)
AS
@@ -29,6 +30,7 @@ BEGIN
[TwoFactorEnabled] = @TwoFactorEnabled,
[TwoFactorProvider] = @TwoFactorProvider,
[AuthenticatorKey] = @AuthenticatorKey,
[TwoFactorRecoveryCode] = @TwoFactorRecoveryCode,
[CreationDate] = @CreationDate,
[RevisionDate] = @RevisionDate
WHERE