fix: update logic for waiting

This commit is contained in:
2025-07-22 14:02:30 +02:00
parent 8f5032e531
commit c67b6dfb6a
3 changed files with 31 additions and 13 deletions

View File

@ -29,9 +29,13 @@ class LoginController
$configPath = __DIR__ . '/../../config.json';
$config = file_exists($configPath) ? json_decode(file_get_contents($configPath), true) : [];
$name = $config[$domain] ?? null;
$params = (array)$request->getParsedBody();
if(!$name){
return $this->json($response, [
'status' => 'not_found',
'message' => 'Container not found',
], 404);
}
$captcha = new PCaptcha();
if (!$captcha->validate_captcha($params['panswer'])) {