Browse Source

Add support for plex admin user

Cerothen 9 years ago
parent
commit
f791eec10d
1 changed files with 5 additions and 0 deletions
  1. 5 0
      functions.php

+ 5 - 0
functions.php

@@ -136,6 +136,11 @@ function plugin_auth_emby_local($username, $password) {
 
 // Pass credentials to Plex Backend
 function plugin_auth_plex($username, $password) {
+	// Quick out
+	if ((strtolower(PLEXUSERNAME) == strtolower($username)) && $password == PLEXPASSWORD) {
+		return true;
+	}
+	
     //Get User List
     $approvedUsers = array();
     $userURL = 'https://plex.tv/pms/friends/all';