Stefan Melmuk
1 week ago
No known key found for this signature in database
GPG Key ID: 817020C608FE9C09
2 changed files with
15 additions and
1 deletions
-
src/api/web.rs
-
src/static/templates/scss/vaultwarden.scss.hbs
|
|
|
@ -60,11 +60,12 @@ fn vaultwarden_css() -> Cached<Css<String>> { |
|
|
|
"mail_2fa_enabled": CONFIG._enable_email_2fa(), |
|
|
|
"mail_enabled": CONFIG.mail_enabled(), |
|
|
|
"sends_allowed": CONFIG.sends_allowed(), |
|
|
|
"password_hints_allowed": CONFIG.password_hints_allowed(), |
|
|
|
"signup_disabled": CONFIG.is_signup_disabled(), |
|
|
|
"sso_enabled": CONFIG.sso_enabled(), |
|
|
|
"sso_only": CONFIG.sso_enabled() && CONFIG.sso_only(), |
|
|
|
"yubico_enabled": CONFIG._enable_yubico() && CONFIG.yubico_client_id().is_some() && CONFIG.yubico_secret_key().is_some(), |
|
|
|
"webauthn_2fa_supported": CONFIG.is_webauthn_2fa_supported(), |
|
|
|
"yubico_enabled": CONFIG._enable_yubico() && CONFIG.yubico_client_id().is_some() && CONFIG.yubico_secret_key().is_some(), |
|
|
|
}); |
|
|
|
|
|
|
|
let scss = match CONFIG.render_template("scss/vaultwarden.scss", &css_options) { |
|
|
|
|
|
|
|
@ -192,6 +192,19 @@ bit-nav-item[route="sends"] { |
|
|
|
@extend %vw-hide; |
|
|
|
} |
|
|
|
{{/unless}} |
|
|
|
|
|
|
|
{{#unless password_hints_allowed}} |
|
|
|
/* Hide password hints if not allowed */ |
|
|
|
a[routerlink="/hint"], |
|
|
|
{{#if (webver "<2025.12.2")}} |
|
|
|
app-change-password > form > .form-group:nth-child(5), |
|
|
|
auth-input-password > form > bit-form-field:nth-child(4) { |
|
|
|
{{else}} |
|
|
|
.vw-password-hint { |
|
|
|
{{/if}} |
|
|
|
@extend %vw-hide; |
|
|
|
} |
|
|
|
{{/unless}} |
|
|
|
/**** End Dynamic Vaultwarden Changes ****/ |
|
|
|
/**** Include a special user stylesheet for custom changes ****/ |
|
|
|
{{#if load_user_scss}} |
|
|
|
|