diff --git a/src/Core/Services/Implementations/UserService.cs b/src/Core/Services/Implementations/UserService.cs index 05a287d0dc..2d1ea56cfe 100644 --- a/src/Core/Services/Implementations/UserService.cs +++ b/src/Core/Services/Implementations/UserService.cs @@ -169,7 +169,8 @@ namespace Bit.Core.Services await _mailService.SendChangeEmailEmailAsync(newEmail, token); } - public async Task ChangeEmailAsync(User user, string masterPassword, string newEmail, string newMasterPassword, string token, IEnumerable ciphers) + public async Task ChangeEmailAsync(User user, string masterPassword, string newEmail, + string newMasterPassword, string token, IEnumerable ciphers) { var verifyPasswordResult = _passwordHasher.VerifyHashedPassword(user, user.MasterPassword, masterPassword); if(verifyPasswordResult == PasswordVerificationResult.Failed) @@ -177,7 +178,8 @@ namespace Bit.Core.Services return IdentityResult.Failed(_identityErrorDescriber.PasswordMismatch()); } - if(!await base.VerifyUserTokenAsync(user, _identityOptions.Tokens.ChangeEmailTokenProvider, GetChangeEmailTokenPurpose(newEmail), token)) + if(!await base.VerifyUserTokenAsync(user, _identityOptions.Tokens.ChangeEmailTokenProvider, + GetChangeEmailTokenPurpose(newEmail), token)) { return IdentityResult.Failed(_identityErrorDescriber.InvalidToken()); } @@ -215,7 +217,8 @@ namespace Bit.Core.Services throw new NotImplementedException(); } - public async Task ChangePasswordAsync(User user, string masterPassword, string newMasterPassword, IEnumerable ciphers) + public async Task ChangePasswordAsync(User user, string masterPassword, string newMasterPassword, + IEnumerable ciphers) { if(user == null) { @@ -362,7 +365,8 @@ namespace Bit.Core.Services if(errors.Count > 0) { - Logger.LogWarning("User {userId} password validation failed: {errors}.", await GetUserIdAsync(user), string.Join(";", errors.Select(e => e.Code))); + Logger.LogWarning("User {userId} password validation failed: {errors}.", await GetUserIdAsync(user), + string.Join(";", errors.Select(e => e.Code))); return IdentityResult.Failed(errors.ToArray()); }