Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SinglePointLogin] fix passwordAuthenticate accessing $_POST superglo…
…bal (#4356) This removes the $_POST['username'] in favor of $username variable passed to the function as a parameter. It fixes `PHP Fatal error: Uncaught TypeError: Argument 1 passed to SinglePointLogin::accountLocked() must be of the type string, null given` occurring because the API consumes 'application/json' content-type and $_POST is populated only; > [...] when using application/x-www-form-urlencoded or multipart/form-data as the HTTP Content-Type in the request. > http://php.net/manual/en/reserved.variables.post.php
- Loading branch information