Fix initial account setup email

This commit is contained in:
Slendy 2022-12-26 16:21:16 -06:00
parent 91313074de
commit 400d45389c
No known key found for this signature in database
GPG key ID: 7288D68361B91428
2 changed files with 2 additions and 4 deletions

View file

@ -105,7 +105,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.";
$"If this was you, your {ServerConfiguration.Instance.Customization.ServerName} password can be set at the following link:\n" +
$"{ServerConfiguration.Instance.ExternalUrl}/passwordReset?token={resetToken.ResetToken}";
SMTPHelper.SendEmail(user.EmailAddress, $"Project Lighthouse Password Setup Request for {user.Username}", messageBody);
SMTPHelper.SendEmail(email, $"Project Lighthouse Password Setup Request for {user.Username}", messageBody);
this.database.PasswordResetTokens.Add(resetToken);