mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Revert the ipad content browser change, since it doesn't fix anything
This commit is contained in:
parent
8d42bfb222
commit
7a7f0a9f31
@ -102,12 +102,8 @@ class AuthController(object):
|
|||||||
@wraps(func)
|
@wraps(func)
|
||||||
def authenticate(*args, **kwargs):
|
def authenticate(*args, **kwargs):
|
||||||
cookie = cherrypy.request.cookie.get(self.cookie_name, None)
|
cookie = cherrypy.request.cookie.get(self.cookie_name, None)
|
||||||
ua = cherrypy.request.headers.get('User-Agent', '').strip()
|
|
||||||
|
|
||||||
if ('iPad;' in ua or 'iPhone;' in ua or (
|
if not (allow_cookie_auth and self.is_valid(cookie)):
|
||||||
not (allow_cookie_auth and self.is_valid(cookie)))):
|
|
||||||
# Apparently the iPad cant handle this
|
|
||||||
# see https://bugs.launchpad.net/bugs/1013976
|
|
||||||
digest_auth(self.realm, get_ha1_dict_plain(self.users_dict),
|
digest_auth(self.realm, get_ha1_dict_plain(self.users_dict),
|
||||||
self.secret)
|
self.secret)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user