mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 16:12:49 -05:00
recover
This commit is contained in:
@ -474,7 +474,7 @@ namespace Bit.Core.Services
|
||||
}
|
||||
|
||||
user.TwoFactorProviders = null;
|
||||
user.TwoFactorRecoveryCode = null;
|
||||
user.TwoFactorRecoveryCode = Guid.NewGuid().ToString("N");
|
||||
await SaveUserAsync(user);
|
||||
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user