]]jkjjgdjffksdkdfdkasertertertrtetsadskdfgjdskfgj
במ12[aspddfasdaertertertertetghjghjsadasbvxcvxcv;'
/
home
/
u181040597
/
domains
/
jyotielevator.com
/
public_html
/
admin
/
Upload FileeE
HOME
<?php session_start(); if ($_SERVER["REQUEST_METHOD"] == "POST") { $email = filter_input(INPUT_POST, 'email', FILTER_VALIDATE_EMAIL); $password = $_POST['password']; if (!$email) { echo "Invalid email format."; exit; } if (strlen($password) < 8) { echo "Password must be at least 8 characters long."; exit; } // Generate a 6-digit OTP $otp = rand(100000, 999999); // Store the OTP in the session $_SESSION['otp'] = $otp; $_SESSION['email'] = $email; // Send the OTP to the user's email $subject = "Your OTP Code"; $message = "Your OTP code is $otp"; $headers = "From: noreply@example.com"; if (mail($email, $subject, $message, $headers)) { // Redirect to OTP verification page header("Location: verify_otp.php"); exit; } else { echo "Failed to send OTP. Please try again."; } } ?>