4
0
Эх сурвалжийг харах

Ombi local API requires exact case for username - Fix #1061

causefx 7 жил өмнө
parent
commit
8071193024

+ 1 - 1
api/functions/api-functions.php

@@ -20,7 +20,7 @@ function login($array)
 			}
 		}
 	}
-	$username = strtolower($username);
+	$username = (strpos($GLOBALS['authBackend'], 'emby') !== false) ? $username : strtolower($username);
 	$days = (isset($remember)) ? $GLOBALS['rememberMeDays'] : 1;
 	$oAuth = (isset($oAuth)) ? $oAuth : false;
 	try {