Add CAPTCHA area to signup and account recovery forms

This commit is contained in:
Kijin Sung 2016-06-07 23:49:27 +09:00
parent 9672060be8
commit 5012bc194b
2 changed files with 13 additions and 6 deletions

View file

@ -12,10 +12,11 @@
<input type="hidden" name="document_srl" value="{$document_srl}" />
<input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="xe_validator_id" value="modules/member/skin/default/find_member_account/1" />
<span class="input-append">
<input type="email" name="email_address" required placeholder="{$lang->email_address}" title="{$lang->email_address}" />
<div>
<input type="email" name="email_address" required placeholder="{$lang->email_address}" title="{$lang->email_address}" /><br />
<block cond="$captcha">{$captcha}<br /></block>
<input type="submit" class="btn btn-inverse" value="{$lang->cmd_find_member_account}" />
</span>
</div>
</form>
</section>
<hr cond="count($lang->find_account_question_items)>1 && $enable_find_account_question == 'Y'">
@ -49,6 +50,7 @@
<div>
<input type="text" name="find_account_answer" value="" required placeholder="{$lang->find_account_question}" title="{$lang->find_account_question}" />
</div>
<block cond="$captcha">{$captcha}<br /></block>
<input type="submit" class="btn btn-inverse" value="{$lang->cmd_get_temp_password}" style="min-width:220px" />
</form>
</section>
@ -64,10 +66,11 @@
<input type="hidden" name="act" value="procMemberResendAuthMail" />
<input type="hidden" name="success_return_url" value="{getUrl(act, $act)}" />
<input type="hidden" name="xe_validator_id" value="modules/member/skin/default/find_member_account/3" />
<span class="input-append">
<input type="email" id="email_address" name="email_address" value="" required placeholder="{$lang->email_address}" title="{$lang->email_address}" />
<div>
<input type="email" id="email_address" name="email_address" value="" required placeholder="{$lang->email_address}" title="{$lang->email_address}" /><br />
<block cond="$captcha">{$captcha}<br /></block>
<input type="submit" value="{$lang->cmd_resend_auth_mail}" class="btn btn-inverse" />
</span>
</div>
</form>
</section>
<include target="./common_footer.html" />

View file

@ -66,6 +66,10 @@
<label for="allow_{$key}" loop="$lang->allow_message_type=>$key,$val"><input type="radio" name="allow_message" value="{$key}" checked="checked"|cond="$member_info->allow_message == $key || (!$member_info && $key == 'Y')" id="allow_{$key}" /> {$val}</label>
</div>
</div>
<div class="control-group" cond="$captcha">
<div class="control-label">{$lang->captcha}</div>
<div class="controls">{$captcha}</div>
</div>
<div class="btnArea" style="border-top:1px solid #ccc;padding-top:10px">
<input type="submit" value="{$lang->cmd_registration}" class="btn btn-inverse pull-right" />
<a href="{getUrl('act','','member_srl','')}" class="btn pull-left">{$lang->cmd_cancel}</a>