#12 Python Flask Tutorial - Flask Password Forgot Setup - Create Token with Itsdangerous in 3 Steps
Vložit
- čas přidán 2. 05. 2021
- 🔖👇 Book a FREE 15-Min Doubt Clearance Session on Zoom with Me.
🔗🤷 calendly.com/codejana/doubt-c...
Hi there coders. I am thinking about starting a Code Jana blog. What do you think?
I will only start the blog if you think I should.
Follow the Google Forms link to provide your feedback: forms.gle/ufEUmW1VfBp8s7Vq5 (Only 3 questions).
Join Code Jana --- Flask Discord Server : / discord .
Share your issues & problems & chat with everyone regarding Python Flask web-framework. Do you want to implement a Password Reset feature in your flask app? If yes, then follow this flask tutorial. You'll learn Flask Password Forgot Setup & how to create token with Itsdangerous Library with Expiring Token.
✔🐍 Learn Flask in 1 Video: Flask Complete Tutorial: • Python Flask Tutorial ...
Hi Coders, welcome to Code Jana. In this video, I'll take you step by step on how to create a password reset feature in your flask app.
If you have been following this tutorial series then thanks a zillion. Please Subscribe because next video will be on how to make our Account Page better with Image Upload feature.
After that, we'll deploy our application on Heroku, Amazon AWS, Google Cloud & Linode.
If you have any queries related to this flask tutorial series, then let me know in the comment section below.
Join our Python Flask Student Community on Whatsapp - chat.whatsapp.com/ICZeAvDH95T...
Videos in Flask Tutorial Series:
#0 - Flask App Intro -
• Python Flask Tutorial ...
#1 - Flask Installation & Best VSCode Extensions for Python -
• #1 Python Flask Tutori...
#2 - Layout & Website Structure in Flask App -
• #2 Python Flask Tutori...
#3 - Adding Bootstrap, Custom CSS, JS in Flask App -
• #3 Python Flask Tutori...
#4 - Creating Navbar Using Bootstrap v5 in Flask App -
• #4 Python Flask Tutori...
#5 - Bootstrap 5 Cards in Flask App -
• #5 Python Flask Tutor...
#6 - Creating Slider with Bootstrap 5 in Flask App -
• #6 Python Flask Tutori...
#7 - Register & Login Page with Flask WTF -
• #7 Python Flask Tutori...
#8 - Flask SQLAlchemy Tutorial - Creating Database in 3 Steps with SQLite - • #8 Python Flask Tutori...
#9 - Flask SQLAlchemy Postgres Tutorial -
• #9 Python Flask Tutor...
#10 - Flask Bcrypt Authentication -
• #10 Python Flask Tutor...
#11 - Flask Login Tutorial - Manage User Session in 3 Steps -
• #11 Python Flask Tutor...
#12 - Flask Forgot Password Setup - Create Itsdangerous Token in 3 Steps - • #12 Python Flask Tutor...
#13 - Flask Upload Image - Easily Upload Image to Database -
• 13. Flask Upload Imag...
#14 - Flask SQLAlchemy Relationship - One to Many Relation -
• #14 Flask SQLAlchemy R...
#15 Deploy Flask App to Heroku - Flask Tutorial Series - Gunicorn Server -
• #15 Deploy Flask App t...
#16 Deploy Flask App to AWS -
• #16 - Deploy Flask App...
Please support me via Patreon: / codejana
Please support me via Patreon: / codejana
Please like, share and subscribe to Code Jana.
Thanks for Watching. :)
Hi, I could easily adapt and implement your solution to fit my needs, thank you very much for your detailed explanation without doing a deeper dive than what was needed for the task. Now that I got to know you, I'll take a look at your other videos as well. Again, congratulations and I can say the community benefits so much from people like you.
Thanks so much for your kind words Felipe😊
very 9ice explanation, out of dis world honestly, GOD BLESS YOU 🙏
Thanks for this great tuto, I implemented it with dash and it works perfectly and easily.
Hi Amine, thanks for your kind words.
thank you so much your doing really great , hope we get next video super fast , because we waiting for the video
Thanks Arun. Your encouraging words mean a lot. 😊
Thanks you for your explanation. You solved my problem
What can I use instead of timedjsonwebsignatureserializer since they don't support it?
thank you soo much..your tutorial is really easy to understand. superb 💯❤❤
You are most welcome Md Rafi
Ciao Codejana, I like a lot your tutorial, following it all. I have a problem, all we will have,
from flask 2 itsdaangerous deprecate JWT. what can we use to Serialize the JSON token?
Whiles on my local machine is working perfectly
HI, your video is fabulous, I need a small urgent help.
instead of sending token url to mail, can you show to send time based otp and redirect to change password.
Please can you respond, i need help for this
Thank you so much! well explained! I'll love to see more videos like this! Quick question - Can you make a video modifying this using a session token instead a user_id, I have tried but i have issues with login manager to recognize the use as authenticated.
I'll try to make it.
@@CodeJana 🤝 Thank you!
So, now in August 2022 itsdangerous package has been deprecated by Flask 2.1.x. I tried finding alternatives but I don't see an option like expire_in parameter :(
is the discord server no longer open? I have a question about how to handle the deprecated TimedJSONWebSignatureSerializer
change TimedJSONWebSignatureSerializer to URLSafeTimedSerializer
Hello How do I make this work for me with React? port 3000 should be on the url_for and not port 5000
timedjsonwebsignatureserializer no longer works. what to do instead?
Hi this is my error= A connection cannot be established because the destination computer expressly denied the connection.
I think that's why I have to enable insecure apps in the gmail, but, GMAIL HAS DISABLED THAT OPTION FOR SECURITY. Is there another way to do it?
Hi, now you can only have app password access. Please follow the google support link:
support.google.com/accounts/answer/185833?hl=en
@@CodeJana Thank you for answering so quickly, I generated the password and it keeps giving me the same error :(
@@LuciaLleraszarza Hi ,It got solved. As the policies of google updated, Enable less secure apps option is removed. So now the option is enable the 2 step factor authentication and IMAP, then created the 16 digit app password(in the security tab). This worked for me.
Hi Code Jana, I am getting a different error below.
socket.gaierror
socket.gaierror: [Errno 11001] getaddrinfo failed
HI there Maria, Could you connect to my discord server & share the error screen there? discord.gg/VQjgFbKQ
🔖👇 Book a FREE 15-Min Doubt Clearance Session on Zoom with Me.
🔗🤷 calendly.com/codejana/doubt-clearance-code-jana
Sir good evening i hope you are doing well
Sir thank you for the video
Please and please can you explain it to me why itsdangerous module not working when you want to host your flask app on pythonanyway
Hi Kenneth, itsdangerous module has been updated.
@@CodeJana OK sir so in your video where you import it in the models.py that it mean it is no longer important from itsdangerous or what's the new update sir
Sir please and please now i realize that google has disable (less secure app access feature) whereby sending email now using flask mail is a big headache to me. so please and please any alternative way again to use flask-mail to send email to my client
Yeah you can enable app specific password from Google.
Hi sir, It got solved. As the policies of google updated, Enable less secure apps option is removed. So now the option is enable the 2 step factor authentication and IMAP, then created the 16 digit app password(in the security tab). This worked for me.
I didn't get SMTP authentication error. It alerts request send but I can't get the reset mail
I've contact you on discord.
Hola me puede ayudar me sale un error ConnectionRefusedError: [WinError 10061] No se puede establecer una conexión ya que el equipo de destino denegó expresamente dicha conexión
Hi...this type of error comes mainly from server not running. If the error is from Google's side, then you need to add two-factor authentication for your app & follow the method suggested by Google Support.
@@CodeJana Me puede ayudar, como se realiza la autenticación de dos factores?
@@anahipuzma6468 Please follow google's instruction for this: myaccount.google.com/signinoptions/two-step-verification/enroll-welcome
@@CodeJana Muchas gracias si funcionó
Hi sir, From this tutorial I had built forgot password function for my application by using SMTP server. It worked fine before. But, from past few days its not working. When I trying to enable less secure apps, it showing this permission has been removed. What really I have to do to get it worked. Will be waiting for your reply.
Hi Mani, did you try using other gmail account or another mail exchange?
@@CodeJana sir, what do you mean by mail exchange, is it mean PORT?
@@manishankar5899 i mean Hotmail, yahoo, etc just to see if the problem is with Google or the code.
Hi sir, It got solved. As the policies of google updated, Enable less secure apps option is removed. So now the option is enable the 2 step factor authentication and IMAP, then created the 16 digit app password(in the security tab). This worked for me.
@@manishankar5899 that's wonderful 👍
sir please help me
helloo sir, unfortunetly my token has expired, that's why i unable to change password , so how solve it sir ??