mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-17 20:45:44 +00:00
add headless
This commit is contained in:
@ -230,6 +230,7 @@ INSTALLED_APPS = [
|
||||
'flags', # Flagging - django-flags
|
||||
'allauth', # Base app for SSO
|
||||
'allauth.account', # Extend user with accounts
|
||||
'allauth.headless', # APIs for auth
|
||||
'allauth.socialaccount', # Use 'social' providers
|
||||
'allauth.mfa', # MFA for for allauth
|
||||
'allauth.usersessions', # DB sessions
|
||||
@ -1182,6 +1183,12 @@ ACCOUNT_FORMS = {
|
||||
SOCIALACCOUNT_ADAPTER = 'InvenTree.forms.CustomSocialAccountAdapter'
|
||||
ACCOUNT_ADAPTER = 'InvenTree.forms.CustomAccountAdapter'
|
||||
|
||||
HEADLESS_FRONTEND_URLS = {
|
||||
'account_confirm_email': 'https://app.project.org/account/verify-email/{key}',
|
||||
'account_reset_password_from_key': 'https://app.org/account/password/reset/key/{key}',
|
||||
'account_signup': 'https://app.org/account/signup',
|
||||
}
|
||||
|
||||
# Markdownify configuration
|
||||
# Ref: https://django-markdownify.readthedocs.io/en/latest/settings.html
|
||||
|
||||
|
@ -124,6 +124,7 @@ apipatterns = [
|
||||
),
|
||||
]),
|
||||
),
|
||||
path('_allauth/', include('allauth.headless.urls')),
|
||||
# Magic login URLs
|
||||
path(
|
||||
'email/generate/',
|
||||
|
Reference in New Issue
Block a user