Jelajahi Sumber

Plex pass email and image

Cerothen 9 tahun lalu
induk
melakukan
8b1e7e0fc2
1 mengubah file dengan 4 tambahan dan 1 penghapusan
  1. 4 1
      functions.php

+ 4 - 1
functions.php

@@ -198,7 +198,10 @@ if (function_exists('curl_version')) :
 				if (isset($result['content'])) {
 					$json = json_decode($result['content'], true);
 					if (is_array($json) && isset($json['user']) && isset($json['user']['username']) && strtolower($json['user']['username']) == $usernameLower) {
-						return true;
+                        return array(
+							'email' => $json['user']['email'],
+							'image' => $json['user']['thumb']
+						);
 					}
 				}
 			}