1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-01 08:02:49 -05:00

[Reset Password] Enable force password reset (#1557)

This commit is contained in:
Vincent Salucci
2021-08-31 14:23:06 -05:00
committed by GitHub
parent 3b589df3b7
commit f2520ed7be

View File

@ -690,11 +690,7 @@ namespace Bit.Core.Services
user.RevisionDate = user.AccountRevisionDate = DateTime.UtcNow;
user.Key = key;
/*
The reset password flow is disabled for the August 2021 release.
user.ForcePasswordReset = true;
*/
user.ForcePasswordReset = true;
await _userRepository.ReplaceAsync(user);
await _mailService.SendAdminResetPasswordEmailAsync(user.Email, user.Name ?? user.Email, org.Name);