File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ fn vaultwarden_css() -> Cached<Css<String>> {
57
57
let css_options = json ! ( {
58
58
"signup_disabled" : !CONFIG . signups_allowed( ) && CONFIG . signups_domains_whitelist( ) . is_empty( ) ,
59
59
"mail_enabled" : CONFIG . mail_enabled( ) ,
60
+ "mail_2fa_enabled" : CONFIG . _enable_email_2fa( ) ,
60
61
"yubico_enabled" : CONFIG . _enable_yubico( ) && CONFIG . yubico_client_id( ) . is_some( ) && CONFIG . yubico_secret_key( ) . is_some( ) ,
61
62
"emergency_access_allowed" : CONFIG . emergency_access_allowed( ) ,
62
63
"sends_allowed" : CONFIG . sends_allowed( ) ,
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ app-root a[routerlink="/signup"] {
118
118
{{ /if }}
119
119
{{ /if }}
120
120
121
- {{ #unless mail_enabled }}
121
+ {{ #unless mail_2fa_enabled }}
122
122
/* Hide `Email` 2FA if mail is not enabled */
123
123
.providers-2fa-1 {
124
124
@extend %vw-hide;
You can’t perform that action at this time.
0 commit comments