1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2025-03-09 13:24:53 +00:00

FIX: Basic auth + OPDS auth conflict

This commit is contained in:
barbequesauce 2018-11-09 13:11:00 -05:00 committed by evilhero
parent 24130a8270
commit 10b3d5f00a

View file

@ -159,7 +159,8 @@ def initialize(options):
user_list[options['opds_username']] = options['opds_password'] user_list[options['opds_username']] = options['opds_password']
if options['http_password'] is not None and options['http_username'] != options['opds_username']: if options['http_password'] is not None and options['http_username'] != options['opds_username']:
user_list[options['http_username']] = options['http_password'] user_list[options['http_username']] = options['http_password']
conf['/opds'] = {'tools.auth_basic.on': True, conf['/opds'] = {'tools.auth.on': False,
'tools.auth_basic.on': True,
'tools.auth_basic.realm': 'Mylar OPDS', 'tools.auth_basic.realm': 'Mylar OPDS',
'tools.auth_basic.checkpassword': cherrypy.lib.auth_basic.checkpassword_dict(user_list)} 'tools.auth_basic.checkpassword': cherrypy.lib.auth_basic.checkpassword_dict(user_list)}
else: else: