Commit 39e4be94 authored by Michal Čihař's avatar Michal Čihař

Logout requires logged in user

parent cb1accd2
......@@ -243,11 +243,11 @@ def weblate_login(request):
)
@login_required
def weblate_logout(request):
'''
Logout handler, just wrapper around standard logout.
'''
if request.user.is_authenticated():
messages.info(request, _('Thanks for using Weblate!'))
return logout(
......
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