mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-22 17:16:34 +03:00
adding not
This commit is contained in:
parent
296a49a04b
commit
48eb40ae47
|
@ -216,5 +216,5 @@ class PasswordChangeSerializer(serializers.Serializer):
|
|||
|
||||
def save(self):
|
||||
self.set_password_form.save()
|
||||
if self.logout_on_password_change:
|
||||
if not self.logout_on_password_change:
|
||||
update_session_auth_hash(self.request, self.user)
|
||||
|
|
Loading…
Reference in New Issue
Block a user