Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Better use the "account" prefix for allauth urls

Roland Geider346e4861d10b
diff --git a/wger/core/tests/test_verification.py b/wger/core/tests/test_verification.py
index bb66423f0..4a5c6ff64 100644
--- a/wger/core/tests/test_verification.py
+++ b/wger/core/tests/test_verification.py
@@ -73,7 +73,7 @@ class EmailVerificationFromPreferencesTestCase(WgerTestCase):
# Extract the confirmation key from the email body
email_body = mail.outbox[0].body
- match = re.search(r'/email/confirm-email/([^/\s]+)/', email_body)
+ match = re.search(r'/account/confirm-email/([^/\s]+)/', email_body)
self.assertIsNotNone(match, 'Could not find confirmation link in email body')
key = match.group(1)
@@ -156,7 +156,7 @@ class EmailVerificationFromAPITestCase(WgerTestCase):
# Extract the confirmation key from the email body
email_body = mail.outbox[0].body
- match = re.search(r'/email/confirm-email/([^/\s]+)/', email_body)
+ match = re.search(r'/account/confirm-email/([^/\s]+)/', email_body)
self.assertIsNotNone(match, 'Could not find confirmation link in email body')
key = match.group(1)
diff --git a/wger/urls.py b/wger/urls.py
index 4d2bcb530..322e86358 100644
--- a/wger/urls.py
+++ b/wger/urls.py
@@ -357,7 +357,7 @@ urlpatterns += [
SpectacularRedocView.as_view(url_name='schema'),
name='api-redoc',
),
- path('email/', include('allauth.account.urls')),
+ path('account/', include('allauth.account.urls')),
]
#