Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 代码点火器Aauth的Recaptcha不工作_Php_Codeigniter_Recaptcha - Fatal编程技术网

Php 代码点火器Aauth的Recaptcha不工作

Php 代码点火器Aauth的Recaptcha不工作,php,codeigniter,recaptcha,Php,Codeigniter,Recaptcha,我正在将未完成的程序从WordPress重写为CodeIgniter。我正在使用CodeIgniter Aauth作为一个库,现在,我正在与上述库中包含的Google Recaptcha合作 根据,我所需要做的就是放置echo$this->aauth->generate_recaptcha_field()在我的布局中。我想在我的注册和登录页面中使用它 下面是aauth.php文件的内容: <?php if (!defined('BASEPATH')) exit('No direct scr

我正在将未完成的程序从WordPress重写为CodeIgniter。我正在使用CodeIgniter Aauth作为一个库,现在,我正在与上述库中包含的Google Recaptcha合作

根据,我所需要做的就是放置
echo$this->aauth->generate_recaptcha_field()在我的布局中。我想在我的注册和登录页面中使用它

下面是aauth.php文件的内容:

<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
|  Aauth Config
| -------------------------------------------------------------------
| A library Basic Authorization for CodeIgniter 2.x
*/


// Config variables

$config['aauth'] = array(
    'login_page' => '/login',
    // if user don't have permisssion to see the page he will be
    // redirected the page spesificed below
    'no_permission' => '/',
    //name of admin group
    'admin_group' => 'admin',
    //name of default group, the new user is added in it
    'default_group' => 'default',
    // public group , people who not logged in
    'public_group' => 'public',
    // The table which contains users
    'users' => 'aauth_users',
    // the group table
    'groups' => 'aauth_groups',
    // 
    'user_to_group' => 'aauth_user_to_group',
    // permitions
    'perms' => 'aauth_perms',
    // perms to group
    'perm_to_group' => 'aauth_perm_to_group',
    // perms to group
    'perm_to_user' => 'aauth_perm_to_user',
    // pm table
    'pms' => 'aauth_pms',
    // system variables
    'system_variables' => 'aauth_system_variables',
    // user variables
    'user_variables' => 'aauth_user_variables',

    // remember time
    'remember' => ' +3 days',

    // pasword maximum char long (min is 4)
    'max' => 13,

    // non alphanumeric characters that are allowed in a name
    'valid_chars' => array(' ', '\''),

    // ddos protection,
    //if it is true, the user will be banned temporary when he exceed the login 'try'
    'ddos_protection' => true,

    'recaptcha_active' => true, 
    'recaptcha_login_attempts' => 4,
    'recaptcha_siteKey' => 'my_sitekey', //This is not blank
    'recaptcha_secret' => 'my_secretkey', //This is not blank

    // login attempts time interval
    // default 20 times in one hour
    'max_login_attempt' => 10,

    // to register email verifitaion need? true / false
    'verification' => false,

    // system email.
    'email' => 'myemail@gmail.com',
    'name' => 'Eli Marie Natividad'

);


/* End of file aauth.php */
/* Location: ./application/config/aauth.php */

发布应用程序/config/aauth.php fileHi@Exprator!我按照您的要求添加了身份验证文件。谢谢设置似乎是正确的,这意味着您在google recaptcha admin中的注册存在问题,您在g RecapthChat中注册了什么url这一个:oss-dev.forexworld.us页面注册正确显示验证码,