Browse Source

fix emby not being lowercase on login check

CauseFX 4 years ago
parent
commit
a592d4ac77
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api/functions/auth-functions.php

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

@@ -482,7 +482,7 @@ trait AuthFunctions
 				if (is_array($json)) {
 					foreach ($json as $key => $value) { // Scan for this user
 						if (isset($value['ConnectUserName']) && isset($value['ConnectLinkType'])) { // Qualify as connect account
-							if (strtolower($value['ConnectUserName']) == $username || strtolower($value['Name']) == $username) {
+							if (strtolower($value['ConnectUserName']) == strtolower($username) || strtolower($value['Name']) == strtolower($username)) {
 								$connectUserName = $value['ConnectUserName'];
 								$this->writeLog('success', 'Emby Connect Auth Function - Found User', $username);
 								break;