Reset Password - Sharpbin
{#if complete}

Password Reset

{message}

Back to login

{:else}

Reset Password

{#if data.username} Reset the password for {data.username}. {:else} Set a new password for your account. {/if}

(passwordFocused = true)} onblur={() => (passwordFocused = false)} class="focus:bg-neutral-750 w-full rounded border border-neutral-700 bg-neutral-800 p-2 placeholder-neutral-500 transition-colors duration-200 focus:border-neutral-600" /> {#if passwordFocused}
  • {#if passwordChecks.minLength}{:else}{/if} At least 8 characters
  • {#if passwordChecks.maxLength}{:else}{/if} No more than 128 characters
  • {#if passwordChecks.upper}{:else}{/if} At least one uppercase letter
  • {#if passwordChecks.lower}{:else}{/if} At least one lowercase letter
  • {#if passwordChecks.number}{:else}{/if} At least one number
{/if} {#if confirmPassword && password !== confirmPassword}
Passwords do not match.
{/if} {#if data.requiresTotp} { if (e.target instanceof HTMLInputElement) { e.target.value = e.target.value.replace(/\D/g, '').slice(0, 6); totpCode = e.target.value; } }} class="focus:bg-neutral-750 w-full rounded border border-neutral-700 bg-neutral-800 p-2 placeholder-neutral-500 transition-colors duration-200 focus:border-neutral-600" /> {/if} {#if error}
{error}
{/if}
{/if}