Skip to content

Commit 4fd22d8

Browse files
authored
fix hiding email as 2fa provider (#6026)
1 parent d6a8fb8 commit 4fd22d8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/api/web.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ fn vaultwarden_css() -> Cached<Css<String>> {
5757
let css_options = json!({
5858
"signup_disabled": !CONFIG.signups_allowed() && CONFIG.signups_domains_whitelist().is_empty(),
5959
"mail_enabled": CONFIG.mail_enabled(),
60+
"mail_2fa_enabled": CONFIG._enable_email_2fa(),
6061
"yubico_enabled": CONFIG._enable_yubico() && CONFIG.yubico_client_id().is_some() && CONFIG.yubico_secret_key().is_some(),
6162
"emergency_access_allowed": CONFIG.emergency_access_allowed(),
6263
"sends_allowed": CONFIG.sends_allowed(),

src/static/templates/scss/vaultwarden.scss.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ app-root a[routerlink="/signup"] {
118118
{{/if}}
119119
{{/if}}
120120

121-
{{#unless mail_enabled}}
121+
{{#unless mail_2fa_enabled}}
122122
/* Hide `Email` 2FA if mail is not enabled */
123123
.providers-2fa-1 {
124124
@extend %vw-hide;

0 commit comments

Comments
 (0)