xepan/captcha 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

xepan/captcha

Composer 安装命令:

composer require xepan/captcha

包简介

ATK filestore modified for xEpan Platform

README 文档

README

captcha plugin for atk4

    $form = $this->add('Form');
    $form->addField('Line','captcha')->add('x_captcha/Controller_Captcha');
    $form->addSubmit('Check');
    $form->onSubmit(function($form){
        if ($form->getElement('captcha')->captcha->isSame($form->get('captcha'))) {
            $form->js()->univ()->successMessage('Captcha is OK!')->execute();
        } else {
            $form->js()->atk4_form('fieldError','captcha','Wrong captcha!')->execute();
        }
    });

If you need case unsensetive captcha just pass false as a second argument for method isSame

    if ($form->getElement('captcha')->captcha->isSame($form->get('captcha',false)))

Screenshot

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-10-07