<?php
session_start();
$otp = $_POST['otp'] ?? '';
if (isset($_SESSION['otp']) && $_SESSION['otp'] == $otp) {
  echo json_encode(['status' => 'success']);
} else {
  echo json_encode(['status' => 'error']);
}
