diff --git a/data/interfaces/default/settings.html b/data/interfaces/default/settings.html index 33d317e6..59d4d18c 100644 --- a/data/interfaces/default/settings.html +++ b/data/interfaces/default/settings.html @@ -522,6 +522,7 @@ available_notification_agents = sorted(notifiers.available_notification_agents() +

Allow shared users to login to PlexPy using their Plex.tv account. Individual user access needs to be enabled from Users > Edit Mode.

@@ -2498,6 +2499,23 @@ $(document).ready(function() { }); }); + function allowGuestAccessCheck () { + if ($('#http_username').val() == '' || $('#http_password').val() == '') { + $("#allow_guest_access").attr("disabled", true); + $("#allow_guest_access").attr("checked", false); + $("#allowGuestCheck").html("You must set an admin password above to allow guest access."); + } else { + $("#allow_guest_access").attr("disabled", false); + $("#allowGuestCheck").html(""); + } + } + allowGuestAccessCheck(); + + $('#http_username, #http_password').change(function () { + allowGuestAccessCheck(); + }); + + $("#http_hash_password").click(function(){ if (!($("#http_hash_password").is(":checked")) && $("#http_hashed_password").val() == "1" && $("#http_password").val() == " ") { $("#http_hashed_password").val(-1);