Procházet zdrojové kódy

Add plex admin to authentication section too

causefx před 7 roky
rodič
revize
5cc0b6d80f
1 změnil soubory, kde provedl 10 přidání a 2 odebrání
  1. 10 2
      api/functions/organizr-functions.php

+ 10 - 2
api/functions/organizr-functions.php

@@ -507,18 +507,26 @@ function getSettingsMain()
 				'href' => '#auth-plex-machine-form',
 				'attr' => 'data-effect="mfp-3d-unfold"'
 			),
+			array(
+				'type' => 'input',
+				'name' => 'plexAdmin',
+				'label' => 'Admin Username',
+				'class' => 'plexAuth switchAuth',
+				'value' => $GLOBALS['plexAdmin'],
+				'placeholder' => 'Admin username for Plex'
+			),
 			array(
 				'type' => 'switch',
 				'name' => 'plexoAuth',
 				'label' => 'Enable Plex oAuth',
-				'class' => 'popup-with-form plexAuth switchAuth',
+				'class' => 'plexAuth switchAuth',
 				'value' => $GLOBALS['plexoAuth']
 			),
 			array(
 				'type' => 'switch',
 				'name' => 'plexStrictFriends',
 				'label' => 'Strict Plex Friends ',
-				'class' => 'popup-with-form plexAuth switchAuth',
+				'class' => 'plexAuth switchAuth',
 				'value' => $GLOBALS['plexStrictFriends'],
 				'help' => 'Enabling this will only allow Friends that have shares to the Machine ID entered above to login, Having this disabled will allow all Friends on your Friends list to login'
 			),