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:
parent
24130a8270
commit
10b3d5f00a
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue