Tom
11 hours ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
8 additions and
0 deletions
-
src/api/web.rs
-
src/static/templates/scss/vaultwarden.scss.hbs
|
|
@ -89,6 +89,7 @@ fn vaultwarden_css() -> EtagCached<Css<String>> { |
|
|
|
|
|
|
|
|
// Else, there is either no cache, or reload_templates is true and we need to rebuild the CSS
|
|
|
// Else, there is either no cache, or reload_templates is true and we need to rebuild the CSS
|
|
|
let css_options = json!({ |
|
|
let css_options = json!({ |
|
|
|
|
|
"email_change_allowed": CONFIG.email_change_allowed(), |
|
|
"emergency_access_allowed": CONFIG.emergency_access_allowed(), |
|
|
"emergency_access_allowed": CONFIG.emergency_access_allowed(), |
|
|
"load_user_scss": true, |
|
|
"load_user_scss": true, |
|
|
"mail_2fa_enabled": CONFIG._enable_email_2fa(), |
|
|
"mail_2fa_enabled": CONFIG._enable_email_2fa(), |
|
|
|
|
|
@ -220,6 +220,13 @@ auth-input-password > form > bit-form-field:nth-child(4) { |
|
|
@extend %vw-hide; |
|
|
@extend %vw-hide; |
|
|
} |
|
|
} |
|
|
{{/unless}} |
|
|
{{/unless}} |
|
|
|
|
|
|
|
|
|
|
|
{{#unless email_change_allowed}} |
|
|
|
|
|
/* Hide the whole `Change email` section, including its heading, if not allowed */ |
|
|
|
|
|
div:has(> app-change-email) { |
|
|
|
|
|
@extend %vw-hide; |
|
|
|
|
|
} |
|
|
|
|
|
{{/unless}} |
|
|
/**** End Dynamic Vaultwarden Changes ****/ |
|
|
/**** End Dynamic Vaultwarden Changes ****/ |
|
|
/**** Include a special user stylesheet for custom changes ****/ |
|
|
/**** Include a special user stylesheet for custom changes ****/ |
|
|
{{#if load_user_scss}} |
|
|
{{#if load_user_scss}} |
|
|
|