mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 22:22:32 +01:00
Appropriately refresh sending tokens
This commit is contained in:
parent
5513422739
commit
3391ad54e0
@ -361,8 +361,7 @@ class NinjaMailerJob implements ShouldQueue
|
||||
|
||||
if($token){
|
||||
|
||||
nlog($token);
|
||||
|
||||
$user->oauth_user_refresh_token = property_exists($token, 'refresh_token') ? $token->refresh_token : $user->oauth_user_refresh_token;
|
||||
$user->oauth_user_token = $token->access_token;
|
||||
$user->oauth_user_token_expiry = now()->addSeconds($token->expires_in);
|
||||
$user->save();
|
||||
|
Loading…
Reference in New Issue
Block a user