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 [#577](https://github.com/Tivix/django-rest-auth/pull/577) in in upstream project.
This commit is contained in:
Anuj Sharma 2020-03-30 22:02:12 +05:30 committed by GitHub
parent 68dbdf7e3e
commit de25807805
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
---------------------------