mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[PR #21868] [CLOSED] fix: SensitiveInput not capturing password manager autofill values #41942
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/21868
Author: @ym7cd
Created: 2/25/2026
Status: ❌ Closed
Base:
main← Head:fix/sensitive-input-autofill📝 Commits (1)
f9eafa6fix: SensitiveInput not capturing password manager autofill values📊 Changes
1 file changed (+5 additions, -5 deletions)
View changed files
📝
src/lib/components/common/SensitiveInput.svelte(+5 -5)📄 Description
Summary
The
SensitiveInputcomponent used one-way{value}binding with anon:changeevent handler. Password managers (e.g. Apple's iCloud Passwords Chrome extension) autofill the input's DOM value directly without triggering thechangeevent, causing the Svelte variable to remain empty ("") while the field visually appears filled. This results in an empty password being sent to the backend, returning "The email or password provided is incorrect" even though the correct password is displayed in the field.Changes
{value}+on:changewithbind:valuefor proper two-way binding that captures all value changes including password manager autofillautocompleteandnameas exported props (defaulting to'off'and'') instead of hardcodingautocomplete="off", so parent components (e.g. the login form) can pass the correct autocomplete hints likecurrent-passwordRoot Cause
The
on:changeevent only fires on user-initiated changes with blur. Browser extension-based password managers setinput.valueprogrammatically without dispatchingchangeorinputevents, so the Svelte variable never updates.Test Plan
autocomplete="current-password"is correctly applied on the login page password fieldautocomplete="off"Made with Cursor
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.