Skip to content

Commit

Permalink
Bugfix redirect urls
Browse files Browse the repository at this point in the history
  • Loading branch information
DEENUU1 committed Dec 23, 2023
1 parent 6a8e7ba commit 55ed27f
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions fjob/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,12 @@
'django.contrib.auth.backends.ModelBackend',
]

if WORKING_MODE == "test":
REDIRECT_URLS = []
else:
try:
REDIRECT_URLS = os.getenv('REDIRECT_URLS').split(',')
except:
pass
REDIRECT_URLS = []

try:
REDIRECT_URLS = os.getenv('REDIRECT_URLS').split(',')
except:
pass

DJOSER = {
'PASSWORD_RESET_CONFIRM_URL': 'password-reset/{uid}/{token}',
Expand Down

0 comments on commit 55ed27f

Please sign in to comment.