mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
fix: use correct password autocomplete for signup
Password manager act based on the 'autocomplet' attribute of the password fields. If the attribut is set to "current-password" they try to fill the password with an existing one. If it is set to "new-password" they try to support the user by generating a new password. For signup in owui, the password was always set to "current-password", so the password manager never proposed a password on signup.
This commit is contained in:
parent
610680ac14
commit
f0e60c28df
@ -302,8 +302,8 @@
|
||||
id="password"
|
||||
class="my-0.5 w-full text-sm outline-hidden bg-transparent"
|
||||
placeholder={$i18n.t('Enter Your Password')}
|
||||
autocomplete="current-password"
|
||||
name="current-password"
|
||||
autocomplete={mode === 'signup' ? 'new-password' : 'current-password'}
|
||||
name="password"
|
||||
required
|
||||
/>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user