diff --git a/auth.orig.py b/auth.py
index 101bc62..699133c 100644
old
|
new
|
class Auth(JSONComponent):
|
135 | 135 | expires, expires_str = make_expires(config["session_timeout"]) |
136 | 136 | checksum = str(make_checksum(session_id)) |
137 | 137 | |
| 138 | base = str(component.get("Web").get_config()["base"]) |
138 | 139 | request.addCookie('_session_id', session_id + checksum, |
139 | | path="/json", expires=expires_str) |
| 140 | path=base+"json", expires=expires_str) |
140 | 141 | |
141 | 142 | log.debug("Creating session for %s", login) |
142 | 143 | config = component.get("DelugeWeb").config |
… |
… |
class Auth(JSONComponent):
|
232 | 233 | session["expires"] = expires |
233 | 234 | |
234 | 235 | _session_id = request.getCookie("_session_id") |
| 236 | base = str(component.get("Web").get_config()["base"]) |
235 | 237 | request.addCookie('_session_id', _session_id, |
236 | | path="/json", expires=expires_str) |
| 238 | path=base+"json", expires=expires_str) |
237 | 239 | |
238 | 240 | if method: |
239 | 241 | if not hasattr(method, "_json_export"): |