New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
昵称和邮箱 #281
昵称和邮箱 #281
Conversation
建议还是增加下“必填邮箱”这个选项,以便站长有权把Valine当作匿名还是非匿名的评论系统,我搜了下有好几个类似的issue呢。 |
requiredFields
设置
|
我提议的是允许加required 属性,详情https://www.w3school.com.cn/html5/att_input_required.asp |
这并不是Form提交,required属性不生效 |
@xCss 你好,我测试了 |
@xaoxuu 测试地址有么!我看看,我本地测试正常~ |
@xaoxuu 已复现并找出了问题所在,下个版本更新,感谢反馈 |
👌 |
required属性适用于input element |
https://valine.js.org/en/configuration.html#requiredFields |
这个设置很坑爹啊,我的昵称就2个字,现在没法回复了 |
实际上没有用 这个东西直接看源代码就完事了 |
已经设置了 requiredFields = ['nick','mail'] 但是还是可以匿名评论 可以麻烦看下吗 测试地址:https://cywhat.cn/ |
|
噢噢 1.4.14版本是小于1.4.6的是吧大佬 想了解下如何升级,我用的是hugo中loveit主题的静态博客 |
如果您希望保留匿名评论的选择,建议开放一个参数,让站长可以选择是否要求填写昵称和邮箱。
如果必须填写昵称和邮箱,则昵称至少3个字符,邮箱至少6个字符且必须包含
@
和.