Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[SinglePointLogin] fix passwordAuthenticate accessing $_POST superglobal #4356

Merged
merged 1 commit into from
Feb 25, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion php/libraries/SinglePointLogin.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down