causefx 7 лет назад
Родитель
Сommit
02eadc43fb
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      api/functions/auth-functions.php

+ 5 - 0
api/functions/auth-functions.php

@@ -307,6 +307,7 @@ function plugin_auth_emby_connect($username, $password)
 					}
 				}
 				if ($connectId) {
+					writeLog('success', 'Emby Connect Auth Function - Attempting to Login with Emby ID: ' . $connectId, $username);
 					$connectURL = 'https://connect.emby.media/service/user/authenticate';
 					$headers = array(
 						'Accept' => 'application/json',
@@ -325,7 +326,11 @@ function plugin_auth_emby_connect($username, $password)
 								'email' => $json['User']['Email'],
 								'image' => $json['User']['ImageUrl'],
 							);
+						} else {
+							writeLog('error', 'Emby Connect Auth Function - Bad Response', $username);
 						}
+					} else {
+						writeLog('error', 'Emby Connect Auth Function - 401 From Emby Connect', $username);
 					}
 				}
 			}