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:
parent
329a9ffb73
commit
c71f49a6db
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user