core: fix pylint renamed variable

This commit is contained in:
Jens Langhammer 2022-03-28 08:58:13 +00:00
parent 487b1e4f34
commit 123b0b2f05

View file

@ -163,11 +163,11 @@ class User(GuardianUserMixin, AbstractUser):
"""superuser == staff user"""
return self.is_superuser # type: ignore
def set_password(self, password, signal=True):
def set_password(self, raw_password, signal=True):
if self.pk and signal:
password_changed.send(sender=self, user=self, password=password)
password_changed.send(sender=self, user=self, password=raw_password)
self.password_change_date = now()
return super().set_password(password)
return super().set_password(raw_password)
def check_password(self, raw_password: str) -> bool:
"""