fix: add name
attributes to login modal, prompt browser to save credentials
This commit is contained in:
parent
248087bf99
commit
c4ee36a56c
1 changed files with 14 additions and 2 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue