Commit 5c71a5a1 authored by Mike Sheldon's avatar Mike Sheldon

Fix case sensitive login for mobile session auth

parent 529d3ee7
......@@ -287,7 +287,7 @@ function method_auth_getMobileSession() {
// Check for a token that is bound to a user
try {
$result = $adodb->GetRow('SELECT username, password FROM Users WHERE '
. 'username = ' . $adodb->qstr($_GET['username']));
. 'lower(username) = ' . strtolower($adodb->qstr($_GET['username'])));
}
catch (exception $e) {
report_failure(LFM_SERVICE_OFFLINE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment