Support the ongoing development of Laravel.io →
Authentication Security Session

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?

Last updated 3 years ago.
0

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.

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.