I'm new in Django and really confused.
I'm developing a authentication API by using built in rest auth.
I want to reset password by API view but the mail link I send redirect me to "password reset confirm" HTML template but I need to redirect this link to API view.
I expect to redirect to this page:
but my email link redirect to this HTML template page:
this email is send by password_reset_email.html
someone asked for password reset for email {{ email }}. Follow the link below:
{{protocol}}://{{ domain }}{% url 'password_reset_confirm' uidb64=uid token=token %}
this is the url for redirecting this email link:
path('password/reset/confirm/(?P<uidb64>[0-9A-Za-z]+)/(?P<token>.+)/$', auth_views.PasswordResetConfirmView, name='password_reset_confirm'),