Skip to content

Commit 36614b2

Browse files
sirjamesgrayclaude
andcommitted
fix: Show "Verifying..." loading state on login button while Turnstile loads
The Sign In button was disabled during Turnstile verification but still displayed "Sign In", making it unclear why the button was non-interactive. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9c9b819 commit 36614b2

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

app/components/forms/login-form.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,12 @@ export function LoginForm() {
322322
className="w-full"
323323
disabled={isLoading || isLockedOut || !isTurnstileVerified}
324324
>
325-
{isLoading ? 'Signing in...' : isLockedOut ? `Locked (${formatCountdown(countdown!)})` : 'Sign In'}
325+
{isLoading ? 'Signing in...' : isLockedOut ? `Locked (${formatCountdown(countdown!)})` : !isTurnstileVerified ? (
326+
<span className="flex items-center gap-2">
327+
<Icon name="Loader" size={16} className="animate-spin" />
328+
Verifying...
329+
</span>
330+
) : 'Sign In'}
326331
</Button>
327332
</form>
328333

0 commit comments

Comments
 (0)