We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 9526d644 authored by clint's avatar clint

apply librefm-mobile_auth-i_suck.diff from qwp0

parent ce35bf47
......@@ -134,8 +134,12 @@ function method_auth_getmobilesession() {
if (PEAR::isError($result)) {
report_failure(LFM_SERVICE_OFFLINE);
}
if (is_null($result)
|| md5($result['username'] . $result['password']) == $_GET['authToken']) {
if (is_null($result)) {
report_failure(LFM_INVALID_TOKEN);
}
list($username, $password) = $result;
if (md5($username . $password) != $_GET['authToken']) {
report_failure(LFM_INVALID_TOKEN);
}
......
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