def set_unusable_password(self): # Sets a value that will never be a valid hash self.password = make_password(None)
def set_password(self, raw_password): self.password = make_password(raw_password)