Skip to content

Commit

Permalink
fix: revert to using EmailChangeTokenCurrent
Browse files Browse the repository at this point in the history
  • Loading branch information
J0 committed Dec 17, 2024
1 parent 409c941 commit 71213f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/api/mail.go
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ func (a *API) sendEmail(r *http.Request, tx *storage.Connection, u *models.User,
emailData.Token = otpNew
} else {
emailData.TokenNew = otpNew
emailData.TokenHashNew = tokenHashWithPrefix
emailData.TokenHashNew = u.EmailChangeTokenCurrent
}
}
input := hooks.SendEmailInput{
Expand Down

0 comments on commit 71213f7

Please sign in to comment.