Hey everyone,
I am having some trouble working with Laravel and the infusionsoft api. Right now I am using the api to check credentials with infusionsoft, if it returns true (valid creds), I am manually logging in the 1 user I have stored in the local database. The user is shown as successfully logged in using Auth::check(), but on redirect, it fails to pass the built in auth filter.
Here is the code I'm using
public function login()
{
$username = Input::get('username');
$password = Input::get('password');
$app = new iSDK();
if ($app->cfgCon("connectionName")) {
$uid = $app->authenticateUser("$username","$password");
if (strpos($uid,'ERROR') !== false) {
echo $uid;
}
Auth::loginUsingId(3);
if (Auth::check()) {
echo "Logged In";
}
return Redirect::intended('/');
}
}
Can anyone help me troubleshoot this?
Just an update -
I tried a fresh installation of laravel and I'm still running into the same problem. Any help is very much appreciated.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community