1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-17 00:03:17 -05:00

Inverted logic for EmailTotpAction

This commit is contained in:
Todd Martin 2025-06-13 17:51:03 -04:00
parent 8ef77388cc
commit a8a04102a6
No known key found for this signature in database
GPG Key ID: 663E7AF5C839BC8F

View File

@ -174,7 +174,7 @@ public class HandlebarsMailService : IMailService
var model = new TwoFactorEmailTokenViewModel
{
Token = token,
EmailTotpAction = (purpose == TwoFactorEmailPurpose.Login) ? "logging in" : "setting up two-step login",
EmailTotpAction = (purpose == TwoFactorEmailPurpose.Setup) ? "setting up two-step login" : "logging in",
AccountEmail = accountEmail,
TheDate = requestDateTime.ToLongDateString(),
TheTime = requestDateTime.ToShortTimeString(),