mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-06 01:43:42 +02:00
Content server: Fix blank username causing error on startup
Fixes #1215893 [attempted to start server and recieved an error](https://bugs.launchpad.net/calibre/+bug/1215893)
This commit is contained in:
parent
da8910bd90
commit
9614b26137
1 changed files with 1 additions and 1 deletions
|
|
@ -185,7 +185,7 @@ def __init__(self, db, opts, embedded=False, show_tracebacks=True,
|
|||
'text/xml', 'text/javascript', 'text/css'],
|
||||
}
|
||||
|
||||
if opts.password:
|
||||
if opts.username and opts.password:
|
||||
self.users_dict[opts.username.strip()] = opts.password.strip()
|
||||
auth_controller = AuthController('Your calibre library',
|
||||
self.users_dict)
|
||||
|
|
|
|||
Loading…
Reference in a new issue