Commit 63a12be1 authored by Janis Streib's avatar Janis Streib 🦉

FIX: removed poitential login error

parent 1a6efc8b
Pipeline #130079 passed with stages
in 5 minutes and 41 seconds
......@@ -53,7 +53,6 @@ def api_login():
login_url = auth_req.request(oic_client.authorization_endpoint)
return jsonify({'status': 'usr_redir', 'url': login_url})
if not 'login_token' in s and not isinstance(s['login'], SimpleKITUser):
print('Creating session token. long:', s['wants_long_token'])
s['login_token'] = s['login'].create_session_token(db, get_db_conn(), s.get("wants_long_token", False))
s.save()
return jsonify({'login': s['login'], 'token': s.get('login_token', None)})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment