Merge pull request #85 from unslothai/fix/password-hint-length

Fix/password hint length
This commit is contained in:
Roland Tannous 2026-02-15 10:19:03 +04:00 committed by GitHub
commit fb712f73f4

View file

@ -199,6 +199,9 @@ export function AuthForm({ mode }: AuthFormProps): ReactElement | null {
)}
</Button>
</div>
{!isLoginMode && (
<p className="text-xs text-muted-foreground">Must be at least 8 characters</p>
)}
</div>
{!isLoginMode && (
@ -223,7 +226,7 @@ export function AuthForm({ mode }: AuthFormProps): ReactElement | null {
<Button
type="submit"
className="w-full"
disabled={loading || statusLoading || blockedByState}
disabled={loading || statusLoading || blockedByState || (!isLoginMode && password.length < 8)}
>
{loading ? "Please wait..." : submitLabel}
</Button>