티스토리 뷰
관리자 페이지에서 Captcha 사용 설정 했는데
로그인 페이지에서 나타나지 않을때
스킨 html 파일에 강제 추가하는 코드
Captcha 서비스 중 Cloudflare Turnstile 적용 사례 :
{@
$captcha_class = 'Rhymix\\Modules\\Spamfilter\\Captcha\\Turnstile';
$config = ModuleModel::getModuleConfig('spamfilter') ?: new stdClass();
$captcha_class::init($config->captcha);
$captcha = new $captcha_class();
$target_actions = [
'dispMemberLoginForm',
'procMemberLogin',
'dispMemberSignUpForm',
'procMemberSignUp',
'dispMemberFindAccount',
'procMemberFindAccount',
];
$captcha->setTargetActions($target_actions);
$captcha->addScripts();
Context::set('captcha', $captcha);
}
<div class="control-group captcha" cond="isset($captcha)">
{$captcha}
</div>
'웹프로그래밍 > PHP' 카테고리의 다른 글
PHP 9.0의 새로운 기능과 변화 미리보기 (2) | 2025.04.03 |
---|---|
macOS에서 MailHog로 PHP mail() SMTP 개발환경 설정 (0) | 2019.02.22 |
Lavavel Valet 개별 사용자 환경설정 디렉토리 (0) | 2019.02.13 |
.composer/vendor/ 패키지 오류 발생시 (0) | 2018.11.29 |
[책 후기] 바쁜 팀장님 대신 알려주는 신입 PHP 개발자 안내서 (0) | 2018.02.04 |
댓글
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- API
- sencha touch
- javascript
- Wordpress
- laravel
- JSON
- Debug
- PHP
- 안드로이드
- iphone
- 워드프레스
- centos
- Mac
- nginx
- Linux
- Docker
- IE
- nodejs
- classic asp
- JQuery
- CSS
- IOS
- mssql
- ASP
- git
- Prototype
- iis
- 한글
- macos
- Android
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
글 보관함