prepare('UPDATE users SET email_verified_at = CURRENT_TIMESTAMP, credits = credits + :credits WHERE id = :id AND email_verified_at IS NULL'); $stmt->execute(['credits' => STARTING_CREDITS, 'id' => $userId]); if ($stmt->rowCount() === 1) { $status = 'verified'; } else { $checkStmt = $pdo->prepare('SELECT email_verified_at FROM users WHERE id = :id'); $checkStmt->execute(['id' => $userId]); $existing = $checkStmt->fetchColumn(); $status = ($existing !== false && $existing !== null) ? 'already_verified' : 'invalid'; } } $pageTitle = 'Verify Email'; ?>

Email verified!

Your email is confirmed and your free credits have been added to your account. You're ready to create.

Start Creating

Already verified

This email address has already been verified. You're all set.

Go Home

Link expired

This verification link is invalid or has expired. You can request a new one from the create critter page.

Go Home