fix some bugs in session api and add a signal to cleanup tokens after password change

This commit is contained in:
Laura Klünder 2018-11-23 22:45:45 +01:00
parent cdb14a1e2c
commit 0d8b54527c
4 changed files with 17 additions and 1 deletions

View file

@ -32,7 +32,7 @@ class SessionViewSet(ViewSet):
SessionAuthentication().enforce_csrf(request)
if request.user.is_authenticated:
return ParseError(_('Log out first.'))
raise ParseError(_('Log out first.'))
try:
data = request.json_body