1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-05 13:08:17 -05:00

toggled the force password reset flow off (#1510)

* toggled the force password reset flow off

* Update UserService.cs
This commit is contained in:
Addison Beck 2021-08-12 13:09:08 -04:00 committed by GitHub
parent 87fb3f533c
commit 824645250e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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