| 1234567891011 |
- <?php
- if (core::ifPost("from") and core::getPost("from") == "authenticator") {
- $result = user::checkGoogleAuthenticator(core::getPost("email"));
- // Retourner du JSON valide pour la requête AJAX
- header('Content-Type: application/json');
- echo json_encode([
- 'authenticator' => (int)$result,
- 'required' => ($result == 1)
- ]);
- }
|