1
0
mirror of https://github.com/bitwarden/server.git synced 2025-05-20 11:04:31 -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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);