Node.js 用户名和邮箱双登录验证规则
//定义验证登录表单数据的规则对象 exports.login_schema = { body: { username: { oneOf: [ { type: 'string' }, { format: 'email' } ] }, password: { type: 'string' } } }
AI 优化版
原文地址:https://www.cveoy.top/t/topic/qhX5 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
//定义验证登录表单数据的规则对象 exports.login_schema = { body: { username: { oneOf: [ { type: 'string' }, { format: 'email' } ] }, password: { type: 'string' } } }
原文地址:https://www.cveoy.top/t/topic/qhX5 著作权归作者所有。请勿转载和采集!