#12 Python Flask Tutorial - Flask Password Forgot Setup - Create Token with Itsdangerous in 3 Steps

Sdílet
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. :)

Komentáře • 59

  • @tadashitani
    @tadashitani Před 2 lety +3

    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.

    • @CodeJana
      @CodeJana  Před 2 lety

      Thanks so much for your kind words Felipe😊

  • @ayo-ju5sv
    @ayo-ju5sv Před 2 měsíci +1

    very 9ice explanation, out of dis world honestly, GOD BLESS YOU 🙏

  • @amineMenacer
    @amineMenacer Před 2 lety +1

    Thanks for this great tuto, I implemented it with dash and it works perfectly and easily.

    • @CodeJana
      @CodeJana  Před 2 lety +1

      Hi Amine, thanks for your kind words.

  • @gatkeshwaramarun950
    @gatkeshwaramarun950 Před 3 lety +1

    thank you so much your doing really great , hope we get next video super fast , because we waiting for the video

    • @CodeJana
      @CodeJana  Před 3 lety

      Thanks Arun. Your encouraging words mean a lot. 😊

  • @BHASHABHAI
    @BHASHABHAI Před 2 lety

    Thanks you for your explanation. You solved my problem

  • @soysergiodev23
    @soysergiodev23 Před rokem +3

    What can I use instead of timedjsonwebsignatureserializer since they don't support it?

  • @MdRafi-gx9bk
    @MdRafi-gx9bk Před 2 lety +1

    thank you soo much..your tutorial is really easy to understand. superb 💯❤❤

    • @CodeJana
      @CodeJana  Před 2 lety +1

      You are most welcome Md Rafi

  • @simplegeektips1490
    @simplegeektips1490 Před 2 lety +4

    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?

  • @Kennethlumor
    @Kennethlumor Před 2 lety +1

    Whiles on my local machine is working perfectly

  • @Tejaswinibandi16
    @Tejaswinibandi16 Před rokem +1

    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

  •  Před rokem

    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.

    • @CodeJana
      @CodeJana  Před rokem +1

      I'll try to make it.

    •  Před rokem

      @@CodeJana 🤝 Thank you!

  • @karishmasukhwani5270
    @karishmasukhwani5270 Před rokem +4

    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 :(

  • @charlescarriere6589
    @charlescarriere6589 Před 2 lety +2

    is the discord server no longer open? I have a question about how to handle the deprecated TimedJSONWebSignatureSerializer

    • @SlawcioD
      @SlawcioD Před rokem +1

      change TimedJSONWebSignatureSerializer to URLSafeTimedSerializer

  • @LuciaLleraszarza
    @LuciaLleraszarza Před rokem

    Hello How do I make this work for me with React? port 3000 should be on the url_for and not port 5000

  • @junhuama68
    @junhuama68 Před měsícem

    timedjsonwebsignatureserializer no longer works. what to do instead?

  • @LuciaLleraszarza
    @LuciaLleraszarza Před rokem +2

    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?

    • @CodeJana
      @CodeJana  Před rokem

      Hi, now you can only have app password access. Please follow the google support link:
      support.google.com/accounts/answer/185833?hl=en

    • @LuciaLleraszarza
      @LuciaLleraszarza Před rokem

      @@CodeJana Thank you for answering so quickly, I generated the password and it keeps giving me the same error :(

    • @manishankar5899
      @manishankar5899 Před rokem

      @@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.

  • @marialuna2746
    @marialuna2746 Před 3 lety +1

    Hi Code Jana, I am getting a different error below.
    socket.gaierror
    socket.gaierror: [Errno 11001] getaddrinfo failed

    • @CodeJana
      @CodeJana  Před 3 lety

      HI there Maria, Could you connect to my discord server & share the error screen there? discord.gg/VQjgFbKQ

  • @CodeJana
    @CodeJana  Před 4 měsíci

    🔖👇 Book a FREE 15-Min Doubt Clearance Session on Zoom with Me.
    🔗🤷 calendly.com/codejana/doubt-clearance-code-jana

  • @Kennethlumor
    @Kennethlumor Před 2 lety

    Sir good evening i hope you are doing well

  • @Kennethlumor
    @Kennethlumor Před 2 lety +1

    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

    • @CodeJana
      @CodeJana  Před 2 lety

      Hi Kenneth, itsdangerous module has been updated.

    • @Kennethlumor
      @Kennethlumor Před 2 lety

      @@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

  • @Kennethlumor
    @Kennethlumor Před 2 lety +1

    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

    • @CodeJana
      @CodeJana  Před 2 lety

      Yeah you can enable app specific password from Google.

    • @manishankar5899
      @manishankar5899 Před rokem

      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.

  • @saravanakumar-sc6ds
    @saravanakumar-sc6ds Před 3 lety +1

    I didn't get SMTP authentication error. It alerts request send but I can't get the reset mail

    • @CodeJana
      @CodeJana  Před 3 lety

      I've contact you on discord.

  • @anahipuzma6468
    @anahipuzma6468 Před rokem +1

    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

    • @CodeJana
      @CodeJana  Před rokem

      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.

    • @anahipuzma6468
      @anahipuzma6468 Před rokem +1

      @@CodeJana Me puede ayudar, como se realiza la autenticación de dos factores?

    • @CodeJana
      @CodeJana  Před rokem

      @@anahipuzma6468 Please follow google's instruction for this: myaccount.google.com/signinoptions/two-step-verification/enroll-welcome

    • @anahipuzma6468
      @anahipuzma6468 Před rokem

      @@CodeJana Muchas gracias si funcionó

  • @manishankar5899
    @manishankar5899 Před 2 lety +1

    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.

    • @CodeJana
      @CodeJana  Před 2 lety

      Hi Mani, did you try using other gmail account or another mail exchange?

    • @manishankar5899
      @manishankar5899 Před 2 lety

      @@CodeJana sir, what do you mean by mail exchange, is it mean PORT?

    • @CodeJana
      @CodeJana  Před 2 lety

      @@manishankar5899 i mean Hotmail, yahoo, etc just to see if the problem is with Google or the code.

    • @manishankar5899
      @manishankar5899 Před 2 lety +1

      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.

    • @CodeJana
      @CodeJana  Před 2 lety

      @@manishankar5899 that's wonderful 👍

  • @Kennethlumor
    @Kennethlumor Před 2 lety

    sir please help me

  • @ushayadav6401
    @ushayadav6401 Před 3 lety

    helloo sir, unfortunetly my token has expired, that's why i unable to change password , so how solve it sir ??