Init Git Prod Mars 2026
This commit is contained in:
commit
d81efe93b1
362 files changed
+86627
No files matched your search
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
header("Content-Type: text/plain"); // Assure un bon retour texte brut
|
||||
require_once __DIR__ . '/../includes/bootstrap_global.php';
|
||||
|
||||
if (isset($_POST['email'])) {
|
||||
$email = trim($_POST['email']);
|
||||
|
||||
$stmt = $pdo->prepare("SELECT id FROM compte WHERE email = :email");
|
||||
$stmt->execute(['email' => $email]);
|
||||
|
||||
echo($stmt->fetch()) ? "existe" : "disponible";
|
||||
exit;
|
||||
}
|
||||
|
||||
echo "invalide";
|
||||
exit;
|
||||
Reference in new issue
Block a user