mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-10-11 06:27:12 +00:00
CSRF protection
This commit is contained in:
1 parent
88b0f84f3c
commit
4c6cfa66a8
6 files changed
+37
-23
No files matched your search
@@ -172,6 +172,7 @@ $_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
|
||||
<?php
|
||||
$lang_mailbox = json_encode($lang['mailbox']);
|
||||
echo "var lang = ". $lang_mailbox . ";\n";
|
||||
echo "var csrf_token = '". $_SESSION['CSRF']['TOKEN'] . "';\n";
|
||||
$role = ($_SESSION['mailcow_cc_role'] == "admin") ? 'admin' : 'domainadmin';
|
||||
echo "var role = '". $role . "';\n";
|
||||
echo "var pagination_size = '". $PAGINATION_SIZE . "';\n";
|
||||
|
||||
Reference in new issue
Block a user