Create an account
Start your finance journey with us today.
Already have an account? Sign In
prepare('SELECT id FROM users WHERE email = ?'); $stmt->execute([$email]); if ($stmt->fetch()) { $error = 'An account with this email already exists.'; } else { $hashed_password = password_hash($password, PASSWORD_DEFAULT); $token = bin2hex(random_bytes(32)); $stmt = $db->prepare('INSERT INTO users (name, email, password, is_verified, verification_token) VALUES (?, ?, ?, 0, ?)'); if ($stmt->execute([$name, $email, $hashed_password, $token])) { // Send verification email $proto = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https' : 'http'; $host = $_SERVER['HTTP_HOST']; $verify_link = "$proto://$host/verify.php?token=$token"; $subject = "Verify your account - $project_name"; $html = "
Thank you for signing up 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
Start your finance journey with us today.
Already have an account? Sign In