Skip to content

Commit

Permalink
Allow to hide master password login
Browse files Browse the repository at this point in the history
  • Loading branch information
Timshel committed Jan 7, 2025
1 parent 2644633 commit 4b9ec4d
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v2024.12.0-3

- Add patch to allow to hide Master password login

## v2024.12.0-2

- Fix missing logo patch
Expand Down
1 change: 1 addition & 0 deletions build_webvault.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ fi
git apply ../oidc_invite.patch
git apply ../oidc_subpath.patch
git apply ../oidc_sso_errors.patch
git apply ../oidc_hide_master_password_login.patch

if [ "$NO_BUILD" = false ] ; then
cd apps/web
Expand Down
31 changes: 31 additions & 0 deletions oidc_hide_master_password_login.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Subject: [PATCH] Add css class to easily hide password fields

---
apps/web/src/app/auth/login/login-v1.component.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/apps/web/src/app/auth/login/login-v1.component.html b/apps/web/src/app/auth/login/login-v1.component.html
index 5b3c2a9942..e5586a4bdc 100644
--- a/apps/web/src/app/auth/login/login-v1.component.html
+++ b/apps/web/src/app/auth/login/login-v1.component.html
@@ -66,7 +66,7 @@
</ng-container>

<div [ngClass]="{ 'tw-hidden': !validatedEmail }">
- <div class="tw-mb-6 tw-h-28">
+ <div class="tw-mb-6 tw-h-28 master-password-login">
<bit-form-field class="!tw-mb-1">
<bit-label>{{ "masterPass" | i18n }}</bit-label>
<input type="password" bitInput #masterPasswordInput formControlName="masterPassword" />
@@ -86,7 +86,7 @@
<iframe id="hcaptcha_iframe" height="80" sandbox="allow-scripts allow-same-origin"></iframe>
</div>

- <div class="tw-mb-3 tw-flex tw-space-x-4">
+ <div class="tw-mb-3 tw-flex tw-space-x-4 master-password-login">
<button bitButton buttonType="primary" bitFormButton type="submit" [block]="true">
<span> {{ "loginWithMasterPassword" | i18n }} </span>
</button>
--
2.39.5

0 comments on commit 4b9ec4d

Please sign in to comment.