Ticket #18666: t18666-auth-save.diff

File t18666-auth-save.diff, 500 bytes (added by Alex, 3 years ago)
  • django/contrib/auth/models.py

    diff --git a/django/contrib/auth/models.py b/django/contrib/auth/models.py
    index 39d9e84..1099aa1 100644
    a b class User(models.Model): 
    299299        """
    300300        def setter(raw_password):
    301301            self.set_password(raw_password)
    302             self.save()
     302            self.save(update_fields=["password"])
    303303        return check_password(raw_password, self.password, setter)
    304304
    305305    def set_unusable_password(self):
Back to Top