invisnik / laravel-steam-auth

Laravel Steam Auth
MIT License
172 stars 67 forks source link

After entering always Auth::check() return fasle #126

Closed haskell-md2 closed 3 years ago

haskell-md2 commented 3 years ago

Why Auth::login($user, true); not working?

public function handle()
{
    if ($this->steam->validate()) {
        $info = $this->steam->getUserInfo();

        if (!is_null($info)) {
            $user = $this->findOrNewUser($info);

            Auth::login($user, true);
            return redirect($this->redirectURL); // redirect to site
        }
    }
    return $this->redirectToSteam();
}
haskell-md2 commented 3 years ago

I am sorry. My mistake was that I did not use standart model Users and use custom model!