causefx преди 7 години
родител
ревизия
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) {
 				if ($connectId) {
+					writeLog('success', 'Emby Connect Auth Function - Attempting to Login with Emby ID: ' . $connectId, $username);
 					$connectURL = 'https://connect.emby.media/service/user/authenticate';
 					$connectURL = 'https://connect.emby.media/service/user/authenticate';
 					$headers = array(
 					$headers = array(
 						'Accept' => 'application/json',
 						'Accept' => 'application/json',
@@ -325,7 +326,11 @@ function plugin_auth_emby_connect($username, $password)
 								'email' => $json['User']['Email'],
 								'email' => $json['User']['Email'],
 								'image' => $json['User']['ImageUrl'],
 								'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);
 					}
 					}
 				}
 				}
 			}
 			}