mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 11:34:35 -04: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 */
|
/* Handle existing users who attempt to create another account with existing OAuth credentials */
|
||||||
if($user = OAuth::handleAuth($socialite_user, $provider))
|
if($user = OAuth::handleAuth($socialite_user, $provider))
|
||||||
{
|
{
|
||||||
$user->token = $socialite_user->token;
|
$user->oauth_user_token = $socialite_user->token;
|
||||||
$user->save();
|
$user->save();
|
||||||
Auth::login($user, true);
|
Auth::login($user, true);
|
||||||
|
|
||||||
@ -335,7 +335,7 @@ class LoginController extends BaseController
|
|||||||
|
|
||||||
if($user = OAuth::handleAuth($socialite_user, $provider))
|
if($user = OAuth::handleAuth($socialite_user, $provider))
|
||||||
{
|
{
|
||||||
$user->token = $socialite_user->token;
|
$user->oauth_user_token = $socialite_user->token;
|
||||||
$user->save();
|
$user->save();
|
||||||
Auth::login($user, true);
|
Auth::login($user, true);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user