From af2683d44b766e2037fb4aba792899b52638ec82 Mon Sep 17 00:00:00 2001 From: "bruce.gibbins" Date: Tue, 18 Apr 2023 21:35:02 +1000 Subject: [PATCH] Corrected OAUTH Settings initialisation --- helpdesk/settings.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/helpdesk/settings.py b/helpdesk/settings.py index 17240a29..15c6022e 100644 --- a/helpdesk/settings.py +++ b/helpdesk/settings.py @@ -254,9 +254,11 @@ HELPDESK_ALWAYS_SAVE_INCOMING_EMAIL_MESSAGE = getattr( # email OAUTH # ####################### -HELPDESK_OAUTH = { - "token_url": "", - "client_id": "", - "secret": "", - "scope": [""] -} +HELPDESK_OAUTH = getattr( + settings, 'HELPDESK_OAUTH', { + "token_url": "", + "client_id": "", + "secret": "", + "scope": [""] + } +)