mirror of
https://github.com/bitwarden/server.git
synced 2025-07-11 04:43:44 -05:00
[Reset Password v1] Updated force password reset models (#1492)
This commit is contained in:
@ -700,7 +700,7 @@ namespace Bit.Core.Services
|
||||
return IdentityResult.Success;
|
||||
}
|
||||
|
||||
public async Task<IdentityResult> UpdateTempPasswordAsync(User user, string newMasterPassword, string key)
|
||||
public async Task<IdentityResult> UpdateTempPasswordAsync(User user, string newMasterPassword, string key, string hint)
|
||||
{
|
||||
if (!user.ForcePasswordReset)
|
||||
{
|
||||
@ -716,6 +716,7 @@ namespace Bit.Core.Services
|
||||
user.RevisionDate = user.AccountRevisionDate = DateTime.UtcNow;
|
||||
user.ForcePasswordReset = false;
|
||||
user.Key = key;
|
||||
user.MasterPasswordHint = hint;
|
||||
|
||||
await _userRepository.ReplaceAsync(user);
|
||||
await _mailService.SendUpdatedTempPasswordEmailAsync(user.Email, user.Name ?? user.Email);
|
||||
|
Reference in New Issue
Block a user