1
0
mirror of https://github.com/bitwarden/server.git synced 2025-05-28 23:04:50 -05:00

change event name to updated2fa

This commit is contained in:
Kyle Spearrin 2018-10-09 15:59:07 -04:00
parent 95cccf5eba
commit aba009c221
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
{ {
User_LoggedIn = 1000, User_LoggedIn = 1000,
User_ChangedPassword = 1001, User_ChangedPassword = 1001,
User_Enabled2fa = 1002, User_Updated2fa = 1002,
User_Disabled2fa = 1003, User_Disabled2fa = 1003,
User_Recovered2fa = 1004, User_Recovered2fa = 1004,
User_FailedLogIn = 1005, User_FailedLogIn = 1005,

View File

@ -606,7 +606,7 @@ namespace Bit.Core.Services
user.TwoFactorRecoveryCode = CoreHelpers.SecureRandomString(32, upper: false, special: false); user.TwoFactorRecoveryCode = CoreHelpers.SecureRandomString(32, upper: false, special: false);
} }
await SaveUserAsync(user); await SaveUserAsync(user);
await _eventService.LogUserEventAsync(user.Id, EventType.User_Enabled2fa); await _eventService.LogUserEventAsync(user.Id, EventType.User_Updated2fa);
} }
public async Task DisableTwoFactorProviderAsync(User user, TwoFactorProviderType type) public async Task DisableTwoFactorProviderAsync(User user, TwoFactorProviderType type)