mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-29 00:24:39 +01: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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user