mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-02-24 00:59:35 -06:00
Set owner on OAuth mail credentials
This commit is contained in:
@@ -262,6 +262,7 @@ class OauthCallbackView(GenericAPIView):
|
|||||||
imap_server=imap_server,
|
imap_server=imap_server,
|
||||||
refresh_token=refresh_token,
|
refresh_token=refresh_token,
|
||||||
expiration=timezone.now() + timedelta(seconds=expires_in),
|
expiration=timezone.now() + timedelta(seconds=expires_in),
|
||||||
|
owner=request.user,
|
||||||
defaults=defaults,
|
defaults=defaults,
|
||||||
)
|
)
|
||||||
return HttpResponseRedirect(
|
return HttpResponseRedirect(
|
||||||
|
|||||||
Reference in New Issue
Block a user