Fix #7385 (Calibre-Server does not work with userid/password)

This commit is contained in:
Kovid Goyal 2010-11-17 12:42:48 -07:00
parent 05fb9ee826
commit 0e715238c7

View File

@ -147,7 +147,7 @@ class LibraryServer(ContentServer, MobileServer, XMLServer, OPDSServer, Cache,
self.config['/'] = { self.config['/'] = {
'tools.digest_auth.on' : True, 'tools.digest_auth.on' : True,
'tools.digest_auth.realm' : ( 'tools.digest_auth.realm' : (
_('Password to access your calibre library. Username is ') 'Password to access your calibre library. Username is '
+ opts.username.strip()), + opts.username.strip()),
'tools.digest_auth.users' : {opts.username.strip():opts.password.strip()}, 'tools.digest_auth.users' : {opts.username.strip():opts.password.strip()},
} }