mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +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
1 changed files with 2 additions and 2 deletions
|
|
@ -302,8 +302,8 @@
|
||||||
id="password"
|
id="password"
|
||||||
class="my-0.5 w-full text-sm outline-hidden bg-transparent"
|
class="my-0.5 w-full text-sm outline-hidden bg-transparent"
|
||||||
placeholder={$i18n.t('Enter Your Password')}
|
placeholder={$i18n.t('Enter Your Password')}
|
||||||
autocomplete="current-password"
|
autocomplete={mode === 'signup' ? 'new-password' : 'current-password'}
|
||||||
name="current-password"
|
name="password"
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue