1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Fix property name on user model (#3120)

This commit is contained in:
David Bomba 2019-12-04 13:03:51 +11:00 committed by GitHub
parent 329a9ffb73
commit c71f49a6db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -280,7 +280,7 @@ class LoginController extends BaseController
/* Handle existing users who attempt to create another account with existing OAuth credentials */
if($user = OAuth::handleAuth($socialite_user, $provider))
{
$user->token = $socialite_user->token;
$user->oauth_user_token = $socialite_user->token;
$user->save();
Auth::login($user, true);
@ -335,7 +335,7 @@ class LoginController extends BaseController
if($user = OAuth::handleAuth($socialite_user, $provider))
{
$user->token = $socialite_user->token;
$user->oauth_user_token = $socialite_user->token;
$user->save();
Auth::login($user, true);