mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[PR #16246] [MERGED] feat: Add password visibility toggle to password fields with SensitiveInput.svelte component #24079
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/open-webui/open-webui/pull/16246
Author: @silentoplayz
Created: 8/3/2025
Status: ✅ Merged
Merged: 8/4/2025
Merged by: @tjbck
Base:
dev← Head:sensitiveinput-password-fields📝 Commits (1)
56eeed6feat: Add password visibility toggle to password fields w SensitiveInput.svelte component📊 Changes
4 files changed (+14 additions, -8 deletions)
View changed files
📝
src/lib/components/admin/Users/UserList/AddUserModal.svelte(+3 -1)📝
src/lib/components/admin/Users/UserList/EditUserModal.svelte(+3 -1)📝
src/lib/components/chat/Settings/Account/UpdatePassword.svelte(+5 -4)📝
src/routes/auth/+page.svelte(+3 -2)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
devbranch.Changelog Entry
Description
<input>elements with theSensitiveInputcomponent for improved security and consistent handling of sensitive data, specifically for password fields. This also involved updating related imports and adjusting props.Added
import SensitiveInput from '$lib/components/common/SensitiveInput.svelte';in multiple files.Changed
<input>tags with<SensitiveInput>component in:src/lib/components/admin/Users/UserList/AddUserModal.sveltesrc/lib/components/admin/Users/UserList/EditUserModal.sveltesrc/lib/components/chat/Settings/Account/UpdatePassword.sveltesrc/routes/auth/+page.svelte(Login & Registration form inputs)Removed
<input>elements.Fixed
Security
SensitiveInputcomponent.Breaking Changes
<input>for password fields has been replaced withSensitiveInput. Components that directly interacted with the previous<input>structure for passwords may need adjustments if not updated. I've tested my changes in this PR though and they generally look good and just work.Additional Information
Confirm Password on Signupcommit.Screenshots or Videos
src/lib/components/admin/Users/UserList/AddUserModal.sveltesrc/lib/components/admin/Users/UserList/EditUserModal.sveltesrc/lib/components/chat/Settings/Account/UpdatePassword.sveltesrc/routes/auth/+page.svelte(Login & Registration form inputs)Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.