mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
#17165259. captcha 애드온에 비밀번호 찾기 기능에 대해서도 가로채서 봇/프로그램 체크 유무를 확인할 수 있도록 하는 기능을 추가.
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6325 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b729bc68f0
commit
e78953d5b8
3 changed files with 40 additions and 2 deletions
|
|
@ -18,6 +18,12 @@
|
|||
if($logged_info->is_admin == 'Y' || $logged_info->is_site_admin) return;
|
||||
if($addon_info->target != 'all' && Context::get('is_logged')) return;
|
||||
|
||||
$target_acts = array('procBoardInsertDocument','procBoardInsertComment','procIssuetrackerInsertIssue','procIssuetrackerInsertHistory');
|
||||
if($addon_info->apply_find_account=='apply') $target_acts[] = 'procMemberFindAccount';
|
||||
|
||||
Context::addHtmlHeader('<script type="text/javascript"> var captchaTargetAct = new Array("'.implode('","',$target_acts).'"); </script>');
|
||||
|
||||
|
||||
// 캡챠 인증이 되지 않은 세션이면 실행 시작
|
||||
if(!$_SESSION['captcha_authed']) {
|
||||
|
||||
|
|
@ -100,7 +106,7 @@
|
|||
Context::addJsFile('./addons/captcha/captcha.js',false);
|
||||
|
||||
// 게시판/ 이슈트래커의 글쓰기/댓글쓰기 액션 호출시 세션 비교
|
||||
if(in_array(Context::get('act'), array('procBoardInsertDocument','procBoardInsertComment','procIssuetrackerInsertIssue','procIssuetrackerInsertHistory'))) {
|
||||
if(in_array(Context::get('act'), $target_acts)) {
|
||||
$this->error = "msg_not_permitted";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue