mirror of
https://github.com/bitwarden/server
synced 2025-12-25 20:53:16 +00:00
fix(2fa): [PM-22323] Do not show 2FA warning for 2FA setup and login emails
* Added configuration to not display 2FA setup instruction * Refactored to new service. * Linting. * Dependency injection * Changed to scoped to have access to ICurrentContext. * Inverted logic for EmailTotpAction * Fixed tests. * Fixed tests. * More tests. * Fixed tests. * Linting. * Added tests at controller level. * Linting * Fixed error in test. * Review updates. * Accidentally deleted imports.
This commit is contained in:
@@ -22,4 +22,9 @@ public class TwoFactorEmailTokenViewModel : BaseMailModel
|
||||
public string TimeZone { get; set; }
|
||||
public string DeviceIp { get; set; }
|
||||
public string DeviceType { get; set; }
|
||||
/// <summary>
|
||||
/// Depending on the context, we may want to show a reminder to the user that they should enable two factor authentication.
|
||||
/// This is not relevant when the user is using the email to verify setting up 2FA, so we hide it in that case.
|
||||
/// </summary>
|
||||
public bool DisplayTwoFactorReminder { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user