Skip to content

[Web] Add show/hide password toggle on login pages#7342

Open
FrauJulian wants to merge 2 commits into
mailcow:stagingfrom
FrauJulian:feat/show-password
Open

[Web] Add show/hide password toggle on login pages#7342
FrauJulian wants to merge 2 commits into
mailcow:stagingfrom
FrauJulian:feat/show-password

Conversation

@FrauJulian

Copy link
Copy Markdown

Contribution Guidelines

What does this PR include?

Short Description

Adds a show/hide password toggle button (eye icon) to the password field on all three login pages: user, admin, and domain admin.

Clicking the button toggles the field between type="password" and type="text" and switches between bi-eye and bi-eye-slash icons accordingly.

The button uses Bootstrap's input-group-text class so its border and styling are consistent with the lock icon on the left side of the input group.

Closes #6893

Affected Containers

  • nginx (web UI templates only — no backend changes)

Did you run tests?

What did you tested?

Tested all three login pages (user, admin, domain admin) using a standalone HTML preview with Bootstrap 5 and Bootstrap Icons.

What were the final results? (Awaited, got)

  • Awaited: eye icon appears at the right of the password field; clicking it reveals the password and switches to eye-slash icon; clicking again hides it.
  • Got: behaviour matches expectation on all three login pages. Button border is visually consistent with the rest of the input group.
CleanShot 2026-03-21 at 16 03 28

The original pull request is #7155
I didn't want this feature to be forgotten.

@FrauJulian FrauJulian changed the title Feat/show password [Web] Add show/hide password toggle on login pages Jul 14, 2026
@MAGICCC

MAGICCC commented Jul 14, 2026

Copy link
Copy Markdown
Member

Can you rebase?

EzxD added 2 commits July 14, 2026 21:20
Adds an eye icon button to the password field on the user, admin, and
domain admin login pages. Clicking it toggles between hidden and visible
password text, using Bootstrap Icons (bi-eye / bi-eye-slash).

Closes mailcow#6893
Replaces btn-outline-secondary with input-group-text so the toggle
button border matches the surrounding input group consistently.
@FrauJulian
FrauJulian force-pushed the feat/show-password branch from eb3eea6 to 5408bc8 Compare July 14, 2026 19:21
@FrauJulian

Copy link
Copy Markdown
Author

@MAGICCC Looks right ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants