mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-03 09:45:03 +02:00
add CSRF Token on customer login
This commit is contained in:
parent
9bc3ccc02b
commit
3eaa302128
4 changed files with 17 additions and 5 deletions
|
@ -26,7 +26,7 @@ switch ($do) {
|
|||
//csrf token
|
||||
$csrf_token = _post('csrf_token');
|
||||
if (!Csrf::check($csrf_token)) {
|
||||
_alert(Lang::T('Invalid CSRF Token') . ".", 'danger', "admin");
|
||||
_alert(Lang::T('Invalid or Expired CSRF Token') . ".", 'danger', "admin");
|
||||
}
|
||||
run_hook('admin_login'); #HOOK
|
||||
if ($username != '' and $password != '') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue