S
S
sortfact3332020-11-24 20:17:06
Django
sortfact333, 2020-11-24 20:17:06

How to create your own password recovery form?

I want to create my own password recovery form.
I know that django has a ready-made template
accounts/password_reset/[name='password_reset'].
But I want the field to send a letter not only by email but also by login
. But I don't know what to add to send_mail() so that it sends a link to restore or at least the password itself.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2020-11-24
@bacon

Well, you know this, so you read the doc, but there in the description of this view there are all the parameters that can be overridden, the same form. So you just inherit and override the necessary attributes and methods

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question