Django Tutorial - Change, Recover Django User Password #16

  Рет қаралды 7,416

Python Lessons

Python Lessons

Күн бұрын

Welcome everyone to part 16 of the web development in python with Django. User registration and authentication are crucial parts of any web application, but an integral part is changing passwords and password recovery. The complete emailing process must be integrated into the system to protect users and keep the communication between the website owner and a user. So, in this part, we'll continue to cover how to complete email functionality in the Django webserver to allow users to change and restore their passwords.
This tutorial will consist of two parts: the first will be a simple password change, and the second will be when a user forgets his password and wants to recover it. It's essential to complete the previous tutorial part to be able to continue on this one.
Text version tutorial: pylessons.com/...
GitHub code: github.com/pyt...
#django #programming #educational #technology #web #website

Пікірлер: 22
@tatemo_labs
@tatemo_labs Жыл бұрын
Wonderful video. One comment: Specifically on the technique used on this video, the link is always valid (assuming it's not expired), so user can use the link to update password as many times he wants. So, that's the "issue" for me on this technique. With the knowledge here, I believe it's serves better to create a new table with one-time use token for user to reset password; so once token is used, then I can delete the token and that solves this. This is an awesome content. Thank you for sharing this.
@nineteenss
@nineteenss Жыл бұрын
The overall video is great!
@PyLessons
@PyLessons Жыл бұрын
Thanks
@riddhimanghosh3193
@riddhimanghosh3193 Жыл бұрын
I have done until first half i.e 5.40 approx and getting an error PASSWORD RESET LINK IS INVALID can you help me with that
@nineteenss
@nineteenss Жыл бұрын
Hey, sorry. I'm not the author of the video, but i've been able to solve my question. My issue was in the template, to be percise, i've set my "password_reset_confirm.html" inside "registration" folder, which is a - "templates" subfolder, due to my own code usage. So when i was clicking the link, Django tried to access it's initial template and it was Django standard form, so i just renamed it from "password_reset_confirm.html" to "password_reset_conf.html" or any other name of you liking and passed it to the code, as is in my example would be "registration/password_reset_conf.html". Hope that will be helpful.
@valentinjalba9598
@valentinjalba9598 Жыл бұрын
Great content! Quick question: right now, the pwd reset link sent via email can be used multiple times. Not sure if I did something wrong
@PyLessons
@PyLessons Жыл бұрын
I don't remember now if it works multiple times or not, but it shouldnt be a problem to find a solution
@jpcodes373
@jpcodes373 Жыл бұрын
Your contents are amazing as usual. Thanks so much for all You do. please how can one detect if the reset password token has been used ??
@nestoftw
@nestoftw 5 ай бұрын
hey, what about if the user updates their email? they can just update to any email without confirmation
@PyLessons
@PyLessons 5 ай бұрын
Hey, I forgot to create this in my tutorials, but if you were following my tutorials it shouldn't be hard to implement it for you :)
@nestoftw
@nestoftw 5 ай бұрын
@@PyLessons thanks
@nineteenss
@nineteenss Жыл бұрын
Same question as Riddhiman Ghosh has. Steps repeated one-by-one, so no mistake were given. What is the current problem, that the link is created, message sent, but when i'm clicking on it, it returns Django admin page with text: "The password reset link was invalid, possibly because it has already been used. Please request a new password reset". Is there any workaround for it? Testing it locally with Django by standard using HTTP.
@nineteenss
@nineteenss Жыл бұрын
Sorry, i've been able to solve my question. My issue was in the template, to be percise, i've set my "password_reset_confirm.html" inside "registration" folder, which is a - "templates" subfolder, due to my own code usage. So when i was clicking the link, Django tried to access it's initial template and it was Django standard form, so i just renamed it from "password_reset_confirm.html" to "password_reset_conf.html" or any other name of you liking and passed it to the code, as is in my example would be "registration/password_reset_conf.html". Hope that will be helpful to anyone stuck with the same naming error. @riddhimanghosh3193
@PyLessons
@PyLessons Жыл бұрын
I am happy that you were able to find this out and fix it!
@ricardorodab
@ricardorodab Жыл бұрын
I noticed that I can use the change password link more than once. How can I set time limit?
@TrungTran-ln3jn
@TrungTran-ln3jn Жыл бұрын
I get an error like this: smtplib.SMTPAuthenticationError: (535, b'5.7.8 Username and Password not accepted... How can I solve that?
@hopesain5065
@hopesain5065 Жыл бұрын
Google no longer provides less supported apps option 😭😢
@raspi.config
@raspi.config 2 жыл бұрын
On the password reset screen, if the captcha is left blank, the django message does not appear (like ticking the captcha box is mandatory). How can I inform the user about this situation?
@tatemo_labs
@tatemo_labs Жыл бұрын
I suggest you to check the captcha video, on the video list. It's all explained there.
@jpcodes373
@jpcodes373 Жыл бұрын
its working, check and compare his code with yours, may be there's some thing you're missing
@santiagobarbera9084
@santiagobarbera9084 Жыл бұрын
User has not attribute user, why this error?
@PyLessons
@PyLessons Жыл бұрын
You missed something from my tutorials, look at them again
Django Tutorial - Uploading Article images #17
21:10
Python Lessons
Рет қаралды 1,9 М.
Change User Password Page - Django Blog #25
18:18
Codemy.com
Рет қаралды 39 М.
ДОКАЗАЛ ЧТО НЕ КАБЛУК #shorts
00:30
Паша Осадчий
Рет қаралды 1,5 МЛН
А ВЫ ЛЮБИТЕ ШКОЛУ?? #shorts
00:20
Паша Осадчий
Рет қаралды 1,6 МЛН
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 14 МЛН
Password Reset Email | Django (3.0) Crash Course Tutorials (pt 20)
19:28
React Forgot and Reset Password | React Authentication #4
12:07
Scalable Scripts
Рет қаралды 56 М.
Find Information from a Phone Number Using OSINT Tools [Tutorial]
16:59
An Illustrated Guide to OAuth and OpenID Connect
16:36
OktaDev
Рет қаралды 586 М.
Django Tutorial - User Registration with Email Confirmation #15
21:28
Python Lessons
Рет қаралды 40 М.
ДОКАЗАЛ ЧТО НЕ КАБЛУК #shorts
00:30
Паша Осадчий
Рет қаралды 1,5 МЛН