mirror of
https://github.com/bitwarden/server.git
synced 2026-02-08 18:03:11 +08:00
remove user twofactorenabled property
This commit is contained in:
@@ -415,7 +415,8 @@ namespace Bit.Core.Services
|
||||
return false;
|
||||
}
|
||||
|
||||
user.TwoFactorEnabled = false;
|
||||
user.TwoFactorProviders = null;
|
||||
user.TwoFactorProvider = null;
|
||||
user.TwoFactorRecoveryCode = null;
|
||||
await SaveUserAsync(user);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user