Skip to content

Commit de25807

Browse files
authored
Note in docs to add allauth urls if account email verification is mandatory
Update docs to add `account_email_verification_sent` endpoint while using `registration`. Without this endpoint, if email verification is set to **MANDATORY** , it gives error ``` Reverse for 'account_email_verification_sent' not found. 'account_email_verification_sent' is not a valid view function or pattern name. ``` This is a copy PR of [iMerica#577](Tivix/django-rest-auth#577) in in upstream project.
1 parent 68dbdf7 commit de25807

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/api_endpoints.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ Registration
6161

6262
- key
6363

64+
.. note:: If you set account email verification as mandatory, you have to add the VerifyEmailView with the used `name`.
65+
You need to import the view: ``from rest_auth.registration.views import VerifyEmailView``. Then add the url with the corresponding name:
66+
``url(r'^rest-auth/account-confirm-email/', VerifyEmailView.as_view(), name='account_email_verification_sent')`` to the urlpatterns list.
67+
68+
6469

6570
Social Media Authentication
6671
---------------------------

0 commit comments

Comments
 (0)