php-无法在Codeigniter中使用社区身份验证登录

我一直在关注如何将Community Auth安装到codeigniter.我按照安装指南中的说明进行操作:

15 Create a user for testing purposes by editing the user_data array
that is inside the create_user method, which is in the Examples
controller. When specifying a user level, be aware of the
“levels_and_roles” array located in config/authentication. In order to
login in the next step the user level must be set to 9, which by
default is an admin. Also note that this method of user creation does
not account for password strength, yet the login validation does. A
password that is strong enough will have an uppercase letter, a
number, and be at least 8 characters long. Run /examples/create_user
in your browser to create the user.

但是,我仍然无法登录.它说总是“登录错误:无效的用户名,电子邮件地址或密码.”.

我已经更改了这些:

            $user_data = array(
            'user_name'     => 'admin',
            'user_pass'     => 'admiN123',
            'user_email'    => 'admin@example.com',
            'user_level'    => '9', // 9 if you want to login @ examples/index.
        );

并使用它登录但一次又一次登录错误.

解决方法:

请激活调试信息:

Open up /application/config/config.PHP. Find the log_threshold setting
and change it to 2 or greater. 2 is the lowest level that allows for
debug level error messages to be logged, and this is the level that
Community Auth uses.

$config['log_threshold'] = 2;

阅读更多关于http://community-auth.com/documentation/debugging

相关文章

统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
前言 之前做了微信登录,所以总结一下微信授权登录并获取用户...
FastAdmin是我第一个接触的后台管理系统框架。FastAdmin是一...
之前公司需要一个内部的通讯软件,就叫我做一个。通讯软件嘛...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...