fix some bugs in session api and add a signal to cleanup tokens after password change
This commit is contained in:
parent
cdb14a1e2c
commit
0d8b54527c
4 changed files with 17 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue