diff --git a/php/libraries/SinglePointLogin.class.inc b/php/libraries/SinglePointLogin.class.inc index 372174317d0..b615ee14fad 100644 --- a/php/libraries/SinglePointLogin.class.inc +++ b/php/libraries/SinglePointLogin.class.inc @@ -320,7 +320,7 @@ class SinglePointLogin /* Check whether a user's account is locked due to too many bad login * attempts before actually trying to authenticate their credentials. */ - if ($this->accountLocked($_POST['username'])) { + if ($this->accountLocked($username)) { $this->_lastError = 'This account is currently suspended due ' . 'to too many bad login attempts.'; $this->insertFailedDetail('Account locked', $setArray);