Skip to content
Snippets Groups Projects
Commit 54b8a8ce authored by Jared Hancock's avatar Jared Hancock
Browse files

csrf: Fix CRSF violation on client login

parent 07c1d79f
No related branches found
No related tags found
No related merge requests found
...@@ -32,19 +32,6 @@ else ...@@ -32,19 +32,6 @@ else
$suggest_pwreset = false; $suggest_pwreset = false;
// Check the CSRF token, and ensure that future requests will have to use a
// different CSRF token. This will help ward off both parallel and serial
// brute force attacks, because new tokens will have to be requested for
// each attempt.
if ($_POST) {
// Check CSRF token
if (!$ost->checkCSRFToken())
Http::response(400, __('Valid CSRF Token Required'));
// Rotate the CSRF token (original cannot be reused)
$ost->getCSRF()->rotate();
}
if ($_POST && isset($_POST['luser'])) { if ($_POST && isset($_POST['luser'])) {
if (!$_POST['luser']) if (!$_POST['luser'])
$errors['err'] = __('Valid username or email address is required'); $errors['err'] = __('Valid username or email address is required');
......
...@@ -1249,7 +1249,7 @@ ul.tabs.alt li.active { ...@@ -1249,7 +1249,7 @@ ul.tabs.alt li.active {
display:block; display:block;
height:30px; height:30px;
position:absolute; position:absolute;
z-index:5; z-index:10;
} }
.tip_arrow { .tip_arrow {
...@@ -1258,7 +1258,7 @@ ul.tabs.alt li.active { ...@@ -1258,7 +1258,7 @@ ul.tabs.alt li.active {
top:5px; top:5px;
left:-12px; left:-12px;
width:12px; width:12px;
z-index:102; z-index:1;
} }
.tip_box.right .tip_arrow { .tip_box.right .tip_arrow {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment