(self, password)
return check_password_hash(self.password_hash, password)
密码验证
密码验证
密码验证
def verify_password(self, password):
        """密码验证"""
        if self.password_hash is None:
            return False
        return check_password_hash(self.password_hash, password)
def verify_password ( self , password ) : if self . password_hash is None : return False return check_password_hash ( self . password_hash , password )