Skip to content
Snippets Groups Projects
Verified Commit 18deafc4 authored by Mark's avatar Mark
Browse files

Refactor

parent 8d68e7c0
No related branches found
No related tags found
1 merge request!3Change login provider backend to graphql
Pipeline #288 passed with stages
in 4 minutes and 24 seconds
......@@ -58,10 +58,9 @@ def is_safe_url(url):
@app.route('/logout', methods=['POST'])
def logout():
if request.method == "POST":
logout_form = LogoutForm()
if logout_form.validate():
logout_user()
logout_form = LogoutForm()
if logout_form.validate():
logout_user()
return redirect(url_for('home'))
if __name__ == '__main__':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment