Apply patch from #1194
This commit is contained in:
parent
b7e7a4bc49
commit
b0a0574ae0
|
@ -135,8 +135,9 @@ class Auth(JSONComponent):
|
||||||
expires, expires_str = make_expires(config["session_timeout"])
|
expires, expires_str = make_expires(config["session_timeout"])
|
||||||
checksum = str(make_checksum(session_id))
|
checksum = str(make_checksum(session_id))
|
||||||
|
|
||||||
|
base = str(component.get("Web").get_config()["base"])
|
||||||
request.addCookie('_session_id', session_id + checksum,
|
request.addCookie('_session_id', session_id + checksum,
|
||||||
path="/json", expires=expires_str)
|
path=base+"json", expires=expires_str)
|
||||||
|
|
||||||
log.debug("Creating session for %s", login)
|
log.debug("Creating session for %s", login)
|
||||||
config = component.get("DelugeWeb").config
|
config = component.get("DelugeWeb").config
|
||||||
|
@ -232,8 +233,9 @@ class Auth(JSONComponent):
|
||||||
session["expires"] = expires
|
session["expires"] = expires
|
||||||
|
|
||||||
_session_id = request.getCookie("_session_id")
|
_session_id = request.getCookie("_session_id")
|
||||||
|
base = str(component.get("Web").get_config()["base"])
|
||||||
request.addCookie('_session_id', _session_id,
|
request.addCookie('_session_id', _session_id,
|
||||||
path="/json", expires=expires_str)
|
path=base+"json", expires=expires_str)
|
||||||
|
|
||||||
if method:
|
if method:
|
||||||
if not hasattr(method, "_json_export"):
|
if not hasattr(method, "_json_export"):
|
||||||
|
|
Loading…
Reference in New Issue