def set_password(self, raw_password): """Set the password for this user to the hash of ``raw_password``.""" self.password = generate_password_hash(raw_password)
def set_password(self, raw_password): '''Set the password for this user to the hash of ``raw_password``.''' self.password = generate_password_hash(raw_password) return None