Files
huntingclubroster/classes/SignIn.php
T

17 lines
619 B
PHP
Raw Normal View History

2026-10-18 17:01:36 +00:00
<?php
class SignIn extends Base {
public function login() {
2026-10-18 19:27:17 -04:00
$params = ['BTN_SUBMIT' => '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';
2026-10-18 17:01:36 +00:00
}
2026-10-18 19:27:17 -04:00
echo $this->applyXSL('<XML/>', $this->getXSL('login'), $params);
exit;
2026-10-18 17:01:36 +00:00
}
}