def check_password(self, raw_password): hashed = make_hashed(raw_password) return self.password == hashed
def set_password(self, raw_password): self.password = make_hashed(raw_password)