fix name validation

This commit is contained in:
Lilian 2023-02-28 12:33:25 +01:00 committed by Kilton937342
parent 8894bbd78d
commit 777fa0fd18

View File

@ -31,9 +31,9 @@
}}>
<h1>Créer une salle</h1>
<InputWithLabel label="Nom de la salle" bind:value={name} min="3" max="20" />
<InputWithLabel label="Nom de la salle" bind:value={name} minlength="3" maxlength="20" />
{#if !$isAuth}
<InputWithLabel label="Votre pseudo" bind:value={pseudo} min="4" max="15" />
<InputWithLabel label="Votre pseudo" bind:value={pseudo} minlength="4" maxlength="15" />
{/if}
<button
class="primary-btn"