Browse Source

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

causefx 7 năm trước cách đây
mục cha
commit
8071193024
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 {