Resend verification
Enter your email and we'll send you a new link.
Remembered your password? Sign In
prepare('SELECT id, name, is_verified FROM users WHERE email = ?'); $stmt->execute([$email]); $user = $stmt->fetch(); if ($user) { if ($user['is_verified'] == 1) { $error = 'This account is already verified. You can log in now.'; } else { $token = bin2hex(random_bytes(32)); $stmt = $db->prepare('UPDATE users SET verification_token = ? WHERE id = ?'); if ($stmt->execute([$token, $user['id']])) { // Send verification email $proto = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') ? 'https' : 'http'; $host = $_SERVER['HTTP_HOST'] ?? 'localhost'; $verify_link = "$proto://$host/verify.php?token=$token"; $subject = "Verify your account - $project_name"; $html = "
You requested a new verification link for $project_name. Please click the button below to verify your email address and activate your account:
If the button doesn't work, copy and paste this link into your browser:
Best regards,
The $project_name Team
Enter your email and we'll send you a new link.
Remembered your password? Sign In