parent
56f995c86f
commit
d007358710
@ -6,7 +6,7 @@ if (!defined('SECURITY')) die('Hacking attempt');
|
|||||||
if ($user->isAuthenticated()) {
|
if ($user->isAuthenticated()) {
|
||||||
// Reset failed login counter
|
// Reset failed login counter
|
||||||
$user->setUserFailed($_SESSION['USERDATA']['id'], 0);
|
$user->setUserFailed($_SESSION['USERDATA']['id'], 0);
|
||||||
header("Location: " . $_SERVER['HTTP_REFERER']);
|
if (!empty($_SERVER['HTTP_REFERER'])) header("Location: " . $_SERVER['HTTP_REFERER']);
|
||||||
}
|
}
|
||||||
// Somehow we still need to load this empty template
|
// Somehow we still need to load this empty template
|
||||||
$smarty->assign("CONTENT", "empty");
|
$smarty->assign("CONTENT", "empty");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user