strtolower the username prior to calling authenticate

This commit is contained in:
Flavio Copes
2015-12-11 17:25:52 +01:00
parent 36ff9d150d
commit a5cbf22d77

View File

@@ -115,6 +115,7 @@ class AdminController
$success = false;
$method = 'task' . ucfirst($this->task);
if (method_exists($this, $method)) {
try {
$success = call_user_func(array($this, $method));
@@ -197,6 +198,7 @@ class AdminController
*/
protected function taskLogin()
{
$this->post['username'] = strtolower($this->post['username']);
if ($this->admin->authenticate($this->post)) {
// should never reach here, redirects first
} else {