mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-12-03 06:13:43 +03:00
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:
parent
68dbdf7e3e
commit
de25807805
|
@ -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
|
||||
---------------------------
|
||||
|
|
Loading…
Reference in New Issue
Block a user