Django: Getting Started Transcripts
Chapter: Users and Account Management
Lecture: Reset confirm HTML

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Assuming the user got that email and clicked the link inside of it. The next step is to perform the actual reset.
0:09 That's done inside of the template called password reset confirm. Let's look at that now.
0:17 There's a lot going on in this one but it isn't as bad as it looks. This is the page where the user enters their new password twice.
0:25 All of this is done in a form so you can submit all that information to the server. Like before I'm using a bootstrap form group with a whole bunch of
0:33 conditionals to make the error processing pretty. There are two password input fields here,
0:41 new password one and then new password two, and of course down at the bottom is the submit button.
0:53 If all goes well and the user's passwords match and pass the password validators, then the password is reset and they're sent on to the last step.
1:02 If they're not then they'll come back to this page and error messages will be shown. Below this there's also a little helpful error message
1:11 in the case where the reset link token was invalid. If somebody's messed around with stuff, this is what they'll see.


Talk Python's Mastodon Michael Kennedy's Mastodon