Browse Source

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

causefx 7 years ago
parent
commit
8071193024
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api/functions/api-functions.php

+ 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 {