reCAPTCHA 애드온을 로그인 폼에도 사용할 수 있도록 개선

This commit is contained in:
Kijin Sung 2020-07-27 11:56:28 +09:00
parent 07a4f57a6f
commit a9175b1c9d
2 changed files with 16 additions and 0 deletions

View file

@ -26,6 +26,18 @@
<title xml:lang="ko"></title>
<title xml:lang="en">Yes</title>
</options>
<options value="N">
<title xml:lang="ko">아니오</title>
<title xml:lang="en">No</title>
</options>
</var>
<var name="use_login" type="select">
<title xml:lang="ko">로그인에 사용</title>
<title xml:lang="en">Use on Login Form</title>
<options value="Y">
<title xml:lang="ko"></title>
<title xml:lang="en">Yes</title>
</options>
<options value="N">
<title xml:lang="ko">아니오</title>
<title xml:lang="en">No</title>

View file

@ -24,6 +24,10 @@ elseif ($addon_info->use_signup === 'Y' && preg_match('/^(?:disp|proc)Member(?:S
{
$enable_captcha = true;
}
elseif ($addon_info->use_login === 'Y' && preg_match('/^(?:disp|proc)MemberLogin(?:Form)?/i', $current_action))
{
$enable_captcha = true;
}
elseif ($addon_info->use_recovery === 'Y' && preg_match('/^(?:disp|proc)Member(?:FindAccount|ResendAuthMail)/i', $current_action))
{
$enable_captcha = true;