Commit ace9ccfe authored by Alex Gaynor's avatar Alex Gaynor
Browse files

Fixed #18666 -- when upgrading a user's password to a new algorithm only save...

Fixed #18666 -- when upgrading a user's password to a new algorithm only save the password field to the databaes.
parent 50837434
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -299,7 +299,7 @@ class User(models.Model):
        """
        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):