Skip to content
Snippets Groups Projects
Commit d7300f44 authored by Andreas Valder's avatar Andreas Valder
Browse files

closes #259

parent 61ea6463
No related branches found
No related tags found
No related merge requests found
......@@ -501,6 +501,7 @@ def login():
dbuser = query('SELECT * FROM users WHERE name = ?', user)
session['user']['dbid'] = dbuser[0]['id']
session['_csrf_token'] = ''.join(random.SystemRandom().choice(string.ascii_letters + string.digits) for _ in range(128))
session.permanent = True
return redirect(request.values.get('ref', url_for('index')))
@app.route('/internal/logout', methods=['GET', 'POST'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment