Using Ion Auth, I was able to successfully register and activate an account. The created account shows up in the database. However, trying to login keeps on saying "Incorrect Login." I have tried various combinations of passwords, tried enabling separately stored salt, changed to bcrypt, etc to no avail. The odd thing is that the default admin credentials login fine.
function testlogin()
{
// ADMIN LOGIN
if ($this->ion_auth->login("[email protected]", "password", false))
{
echo "Admin login successful <br/>";
$this->ion_auth->logout();
}
else
echo "Admin login failed";
// MEMBER LOGIN
if ($this->ion_auth->login("[email protected]", "pwhere", false))
{
echo "Member login successful";
$this->ion_auth->logout();
}
else
echo "Member login failed";
}
The above function prints:
Admin login successful
Member login failed
Is there anything else that needs to be done after registering and activating the account?
@froddd is correct, in order for CodeIgniter's session library to handle this properly you need a redirect after everything login() and logout() call.