Check for HTTP Basic Auth in AuthController

This commit is contained in:
JonnyWong16 2021-07-15 13:21:09 -07:00
parent cc1092a8a2
commit 73001a4427
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -276,7 +276,7 @@ def check_rate_limit(ip_address):
class AuthController(object):
def check_auth_enabled(self):
if plexpy.CONFIG.HTTP_PASSWORD:
if not plexpy.CONFIG.HTTP_BASIC_AUTH and plexpy.CONFIG.HTTP_PASSWORD:
return
raise cherrypy.HTTPRedirect(plexpy.HTTP_ROOT)