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:
guenhter 2025-06-23 11:48:03 +02:00
parent 610680ac14
commit f0e60c28df

View File

@ -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>