iMerica / dj-rest-auth

Authentication for Django Rest Framework
https://dj-rest-auth.readthedocs.io/en/latest/index.html
MIT License
1.69k stars 317 forks source link

A good way to resend verification email ? #194

Open pythonwood opened 3 years ago

pythonwood commented 3 years ago

https://github.com/pennersr/django-allauth/issues/946

escaper01 commented 3 years ago

Let say you have this URL : url('auth/registration/', include('dj_rest_auth.registration.urls')), you will need to send a post request to this address http://127.0.0.1:80/api/accounts/auth/registration/resend-email/ this part

/resend-email/ is hard coded, do not change it (unless you want to customize it) I use axios to send my requests here is an example : ´´´ axios .post(${mainUrl}/api/accounts/auth/registration/resend-email/, { email: 'myemail@email.com', }) .then((res) => { //do whatever you want after resending the email }) .catch((err) => console.log(err.response)); ´´´