def authenticate(self, password): checked = check_password_hash(self.password, password) self._authenticated = checked return self._authenticated