mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-17 03:03:26 +02:00
feature: csrf protection
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
defined('MYAAC') or die('Direct access not allowed!');
|
||||
$title = 'Login';
|
||||
|
||||
csrfProtect();
|
||||
|
||||
require PAGES . 'account/login.php';
|
||||
if ($logged) {
|
||||
header('Location: ' . (admin() ? ADMIN_URL : BASE_URL));
|
||||
|
Reference in New Issue
Block a user