fix: add `name` attributes to login modal, prompt browser to save credentials
ci/woodpecker/push/woodpecker Pipeline was successful Details

feat/plugins-backend
Tomáš Mládek 2024-04-04 22:48:40 +02:00
parent 50020b969e
commit 703a3e5391
1 changed files with 14 additions and 2 deletions

View File

@ -29,8 +29,20 @@
{$i18n.t('Authorization required')}
</h2>
<form on:submit|preventDefault={submit}>
<input placeholder={$i18n.t('Username')} type="text" bind:value={username} required />
<input placeholder={$i18n.t('Password')} type="password" bind:value={password} required />
<input
name="username"
placeholder={$i18n.t('Username')}
type="text"
bind:value={username}
required
/>
<input
name="password"
placeholder={$i18n.t('Password')}
type="password"
bind:value={password}
required
/>
<button type="submit"> <Icon plain name="log-in" /> {$i18n.t('Login')}</button>
</form>
{#if error}