Recaptcha Rails插件 [英] recaptcha plugin for rails
问题描述
我目前正在使用Ambethia的recaptcha插件进行护轨。我想禁用该消息
I am currently using ambethia's recaptcha plugin for rails. I want to disable the message
invalid-captcha-sol
"incorrect-captcha-sol"
无论何时用户输入错误的信息重新捕获。我应该如何去做?
whenever the user incorrectly enters the wrong recaptcha. How should I go about doing this?
在源文件中,我得到了围绕错误消息的以下标记
In the source file I get the following tags surrounding the error message
<p class="recaptcha_error">incorrect-captcha-sol</p>
推荐答案
该插件设置了flash(更确切地说是flash [: recaptcha_error]),即它不会自动显示消息。您很可能有一段代码可以显示所有即时消息。尝试将其删除和/或排除显示Flash [:recaptcha_error]。
The plugin sets the flash (more precisely flash[:recaptcha_error]), i.e. it won't display message automatically. Most likely you have a piece of code that displays all flash messages. Try removing it and/or excluding flash[:recaptcha_error] from being displayed.
这篇关于Recaptcha Rails插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!