微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐