[eluser]Adam Griffiths[/eluser]
[quote author="huzzi" date="1240434877"]Adam, thanks for the brilliant auth library. Can i suggest the following changes to the login() method? if it works.
Code:
function login($redirect = NULL)
{
// check if the user is already logged on, if so exit from the function else carry
//on with the rest of the login
if($this->auth->logged_in()){
break;
}
}
Now, instead of writing
Code:
if($this->auth->logged_in()){
echo "logged on";
}else{
$this->auth->login('go/there');
}
we could just do this
Code:
$this->auth->login('go/there');
would this work?
Thanks[/quote]
Hey,
This is a good idea. I'll be sure to add it to the next release.
Thanks.