From fb3a31a4fd61c6cde4e5a0e0d15746e2f798c5d9 Mon Sep 17 00:00:00 2001 From: Ali <83188384+testA113@users.noreply.github.com> Date: Wed, 10 Aug 2022 16:07:24 +1200 Subject: [PATCH] feat(login): allow-show-hide-password-in-login-screen EE-3885 (#7433) * feat(login): allow show/hide password EE-3885 --- app/assets/css/app.css | 8 +++++ app/portainer/views/auth/auth.html | 35 +++++++++++++++------- app/portainer/views/auth/authController.js | 12 ++++++++ 3 files changed, 45 insertions(+), 10 deletions(-) diff --git a/app/assets/css/app.css b/app/assets/css/app.css index f56036ede..62a96a09a 100644 --- a/app/assets/css/app.css +++ b/app/assets/css/app.css @@ -881,3 +881,11 @@ json-tree .branch-preview { color: var(--text-link-hover-color); text-decoration-line: underline; } + +input[style*='background-image: url("data:image/png'] + [data-cy='auth-passwordInputToggle'] { + right: 20px; +} + +input[style*='background-image: url("data:image/png'] { + padding-right: 60px; +} diff --git a/app/portainer/views/auth/auth.html b/app/portainer/views/auth/auth.html index 53072e74c..5a39fcaf2 100644 --- a/app/portainer/views/auth/auth.html +++ b/app/portainer/views/auth/auth.html @@ -70,18 +70,33 @@
Password
- +
+ + +
-
+