The embodiment of the invention provides a device and a method for verifying data of web form. The device includes a validator management module for managing at least one validator, and maintain the relationship between information identification and validator validator; script module, for receiving the generated script code calls, the call request contains a web form form domain information, and according to the domain information form contains the call request the validator and form fields associated with the web form in the authenticator acquires the authenticator management module management, for client data validation script code by calling the authenticator, the script code output, the script code for the client to verify the data in the form field. By using the invention, the inconsistency between the authentication logic of the client and the server is reduced, thereby reducing the probability of the system error.
【技术实现步骤摘要】
【技术保护点】
一种验证器,其特征在于,包括; 接口模块,包括指定接口,该指定接口被调用后,输出用于客户端数据验证的脚本代码; 验证模块,用于被触发进行服务器端的数据验证时,对需要验证的网页表单中的表单域中的数据进行验证。
【技术特征摘要】
【专利技术属性】
技术研发人员:刘建军,
申请(专利权)人:华为技术有限公司,
类型:发明
国别省市:94[中国|深圳]
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。