Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #18666 -- when upgrading a user's password to a new algorithm o…

…nly save the password field to the databaes.
  • Loading branch information...
commit ace9ccfe9f6b987861404fdf08d22a5663953713 1 parent 5083743
@alex alex authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/auth/models.py
View
2  django/contrib/auth/models.py
@@ -299,7 +299,7 @@ def check_password(self, raw_password):
"""
def setter(raw_password):
self.set_password(raw_password)
- self.save()
+ self.save(update_fields=["password"])
return check_password(raw_password, self.password, setter)
def set_unusable_password(self):

0 comments on commit ace9ccf

Please sign in to comment.
Something went wrong with that request. Please try again.