Skip to content

Commit a42e3ac

Browse files
committed
优化CAPTCHA最大失败次数文字提示
1 parent c94c526 commit a42e3ac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

web/public/js/components/server/http-firewall-actions-box.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ Vue.component("http-firewall-actions-box", {
774774
<input type="text" style="width: 5em" maxlength="9" v-model="captchaMaxFails" @keyup.enter="confirm()" @keypress.enter.prevent="1"/>
775775
<span class="ui label">次</span>
776776
</div>
777-
<p class="comment">允许用户失败尝试的最多次数,超过这个次数将被自动加入黑名单;如果为空或者为0表示默认。</p>
777+
<p class="comment"><span v-if="captchaMaxFails > 0 && captchaMaxFails < 5" class="red">建议填入一个不小于5的数字,以减少误判几率。</span>允许用户失败尝试的最多次数,超过这个次数将被自动加入黑名单;如果为空或者为0表示默认。</p>
778778
</td>
779779
</tr>
780780
<tr v-if="actionCode == 'captcha'">

web/public/js/components/server/http-firewall-captcha-options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ Vue.component("http-firewall-captcha-options", {
169169
<input type="text" style="width: 5em" maxlength="9" v-model="options.maxFails" @keyup.enter="confirm()" @keypress.enter.prevent="1"/>
170170
<span class="ui label">次</span>
171171
</div>
172-
<p class="comment">允许用户失败尝试的最多次数,超过这个次数将被自动加入黑名单。如果为空或者为0,表示不限制。</p>
172+
<p class="comment"><span v-if="options.maxFails > 0 && options.maxFails < 5" class="red">建议填入一个不小于5的数字,以减少误判几率。</span>允许用户失败尝试的最多次数,超过这个次数将被自动加入黑名单。如果为空或者为0,表示不限制。</p>
173173
</td>
174174
</tr>
175175
<tr>

0 commit comments

Comments
 (0)