'main.php', 'INVALID_SIGNIN' => 'FALSE']; if (($_SERVER['REQUEST_METHOD'] ?? 'GET') === 'POST') { $this->requireCsrf(); if ((new AuthService())->login(trim($_POST['user_email'] ?? $_POST['user_name'] ?? ''), $_POST['user_password'] ?? '')) { header('Location: main.php', true, 303); exit; } $params['INVALID_SIGNIN'] = 'TRUE'; } echo $this->applyXSL('', $this->getXSL('login'), $params); exit; } }