I've been following on how to install the Community Auth to codeigniter. I followed the instructions in the installation guide:
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.
However, I can't still login to it. It says that LOGIN ERROR: Invalid Username, Email Address, or Password., always.
I already changed these:
$user_data = array(
'user_name' => 'admin',
'user_pass' => 'admiN123',
'user_email' => '[email protected]',
'user_level' => '9', // 9 if you want to login @ examples/index.
);
and use it to login but login error again and again.
Please activate the debugging information:
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;
Read more on http://community-auth.com/documentation/debugging
I noticed, from using the debug, that my database password did not match the posted password.
When I had set my system up, I had not set up the $config['encryption_key'] correctly. So the fix was a simple as un-commenting the encryption_key...not sure why it was commented out to begin with.
The end fix was to set up my /config/config.php file to be:
$config['encryption_key'] = '';
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With