承接 cybernostics/captcha 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cybernostics/captcha

Composer 安装命令:

composer require cybernostics/captcha

包简介

Captcha plugin for CakePHP.

README 文档

README

The Captcha plugin allows you to add captcha checks on selected forms.

  1. Install the plugin in Plugins folder
  2. Add the captcha input on your selected view (eg register.ctp)

eg:

CaptchaInput->captcha_input(); ?>

  1. Add the following to the controller method which handles the form: (assuming your controller uses a User model)

    public function your_controller_method() { // enable check captcha for create $this->YourModelNameHere->Behaviors->load('CaptchaCreator.CaptchaCheck');

     if ($this->request->is('post')) {
     	$this->YourModelNameHere->create(); // captcha will now be checked
     	if ($this->YourModelNameHere->save($this->request->data)) {
     		$this->Session->setFlash(__('The XYZ has been saved.'));
     		return $this->redirect(array('action' => 'index'));
     	} else {
     		$this->Session->setFlash(__('The XYZ could not be saved. Please, try again.'));
     	}
     }
    

    }

Other methods like admin screens can still create records without the captcha validation getting in your way. The validation rule is only enabled when you request it.

Requirements

  • CakePHP 2.5+
  • PHP 5.2.8+
  • Lib GD

Contributing

Pull requests welcome.

License

Copyright 2007-2014 Cybernostics Pty. All rights reserved.

Licensed under the MIT License. Redistributions of the source code included in this repository must retain the copyright notice found in each file.

统计信息

  • 总下载量: 12
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-12-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固