Skip to content

Commit

Permalink
Note in docs to add allauth urls if account email verification is man…
Browse files Browse the repository at this point in the history
…datory

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.
  • Loading branch information
anuj9196 authored Mar 30, 2020
1 parent 68dbdf7 commit de25807
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/api_endpoints.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ Registration

- key

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



Social Media Authentication
---------------------------
Expand Down

0 comments on commit de25807

Please sign in to comment.