From 3f4239fc6ce75eb9ef4b31b379cfb91b62aa1c34 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Sun, 29 Dec 2024 01:01:29 +0100 Subject: [PATCH] add dummy entry for missing frontend urls; see TODO@matmair --- src/backend/InvenTree/InvenTree/settings.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/backend/InvenTree/InvenTree/settings.py b/src/backend/InvenTree/InvenTree/settings.py index eecce31528..725232bfb1 100644 --- a/src/backend/InvenTree/InvenTree/settings.py +++ b/src/backend/InvenTree/InvenTree/settings.py @@ -1290,10 +1290,12 @@ SOCIALACCOUNT_ADAPTER = 'InvenTree.auth_overrides.CustomSocialAccountAdapter' ACCOUNT_ADAPTER = 'InvenTree.auth_overrides.CustomAccountAdapter' ACCOUNT_LOGOUT_ON_PASSWORD_CHANGE = True +# TDOO: Implement dynamic lookup for those HEADLESS_FRONTEND_URLS = { - 'account_confirm_email': 'https://app.project.org/account/verify-email/{key}', # noqa: RUF027 - 'account_reset_password_from_key': 'https://app.org/account/password/reset/key/{key}', # noqa: RUF027 - 'account_signup': 'https://app.org/account/signup', + 'account_confirm_email': 'http://localhost:8000/verify-email/{key}', # noqa: RUF027 + 'account_reset_password': 'http://localhost:8000/password-reset', + 'account_reset_password_from_key': 'http://localhost:8000/password-reset-key/{key}', # noqa: RUF027 + 'account_signup': 'http://localhost:8000/signup', } HEADLESS_ONLY = True HEADLESS_TOKEN_STRATEGY = 'InvenTree.auth_overrides.DRFTokenStrategy'