mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-07-15 18:12:14 -05:00
[PR #7173] Hide email field on login page when SSO_ONLY is enabled #31553
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/7173
Author: @IacopoSb
Created: 5/1/2026
Status: 🔄 Open
Base:
main← Head:feat/sso_login_graphical_fix📝 Commits (2)
96b81f7fix: hide email field on login page when SSO_ONLY is enableddd4759fMerge commit '07aa377a' into feat/sso_login_graphical_fix📊 Changes
1 file changed (+10 additions, -0 deletions)
View changed files
📝
src/static/templates/scss/vaultwarden.scss.hbs(+10 -0)📄 Description
Two new SCSS rules in
src/static/templates/scss/vaultwarden.scss.hbsthat hide.vw-email-form-fieldand.vw-remember-emailwhensso_only=true.Why
When
SSO_ENABLED=true && SSO_ONLY=truethe email entered on the login page is ignored by the backend (single-tenant SSO usesFAKE_SSO_IDENTIFIER), but the page still asks for it and forces the user to type something. Hiding the input simplifies the UX to a single "Continue with SSO" button.How
Following the existing pattern used for
.vw-or-text/.vw-other-login(already conditional onsso_only), this PR adds an analogous block for the email form-field and the Remember-email checkbox.Depends on
The classes
.vw-email-form-fieldand.vw-remember-emailare added by a companion patch in vw_web_builds: view PR. Without that patch the new rules simply do not match anything.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.