diff options
| author | 2013-08-11 22:24:52 +0200 | |
|---|---|---|
| committer | 2013-08-11 22:24:52 +0200 | |
| commit | 8b1ea13b2df7e5cafb86e1689704ba749fb5e027 (patch) | |
| tree | cd1cfac93260cd4c657c5868c44c0aea6950fe89 /pyload/web/api_app.py | |
| parent | fixed account removing (diff) | |
| download | pyload-8b1ea13b2df7e5cafb86e1689704ba749fb5e027.tar.xz | |
fixed login for some clients
Diffstat (limited to 'pyload/web/api_app.py')
| -rw-r--r-- | pyload/web/api_app.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pyload/web/api_app.py b/pyload/web/api_app.py index c88be0519..b13e3bed9 100644 --- a/pyload/web/api_app.py +++ b/pyload/web/api_app.py @@ -102,7 +102,12 @@ def login(): result = BaseEncoder().default(user) result["session"] = sid - return dumps(result) + + # Return full user information if needed + if request.params.get('user', None): + return dumps(result) + + return dumps(sid) @route("/api/logout") |
