Forgot and Reset Password with React + Node JS

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024
  • It's crucial to add a forgot/reset password feature to your React app that will allow users to securely reset their passwords when they forget them or when their passwords are found in data breaches.
    Source: github.com/kse...
    Buy Me Coffee: www.buymeacoff...
    Website: kutlosek.xyz

Комментарии • 40

  • @twinkles13
    @twinkles13 5 месяцев назад +2

    You are modifying OTP using useState hook. So wouldn't it be accessible from developers window? It could be seen by the user easily.

  • @gergelyattila9546
    @gergelyattila9546 7 месяцев назад +2

    I have a question. We are modifying the OTP when clicking on reset password, but what if another user click on reset password after we did. Will it change to a new random code for the first user? Or it will stay the same? Like is the OTP const static/global

  • @notheory-norules5915
    @notheory-norules5915 5 дней назад

    a video that could be shortened to 2 mins -- of useful information -- talking tooooo much

  • @ranianourelhouda6146
    @ranianourelhouda6146 8 месяцев назад +2

    Thanks a lot, you really helped me ❤️

  • @FGA-47
    @FGA-47 Год назад +2

    Thanks man that was really helpful ❤❤❤❤

    • @koding_101
      @koding_101  Год назад

      My pleasure , glad to be of assistance

  • @ForbiddenInstincts
    @ForbiddenInstincts Год назад +1

    Thanks for video I had a question about if you're using a database. How would it know what user is trying to update their passwords once they get their otp code?

    • @Gulliver626
      @Gulliver626 Год назад

      U can use the identificator and email in your table. And put a variable whit a token like a sesion, but not a sesion, who verify what user is changing his pass.Sorry for my english

  • @alisbahzulfiqar3562
    @alisbahzulfiqar3562 5 месяцев назад

    Error: Invalid login: 535-5.7.8 Username and Password not accepted. This is the error which I am receiving at the time of clicking the button of forget button

  • @wolverine_d_king9422
    @wolverine_d_king9422 Год назад +1

    Can you plz build a website with login,register and forgot password functionality with both frontend and backend and can also sign up and sign in with GOOGLE AND GITHUB. . PLZ 🙏

    • @koding_101
      @koding_101  Год назад +1

      Yes, one of the applications I plan on building is a simple social media application and it will include all these features or functionalities.

  • @acmeacademiccouncilofmecha7569
    @acmeacademiccouncilofmecha7569 7 месяцев назад

    This is not an effective way to solve the issue. You should send a brand new link on user's email and onlicking the same a brand new page will appear asking for new password. The link should have some validity time say one hour.

  • @AbdullahBRashid
    @AbdullahBRashid 5 месяцев назад

    Bruhh. Please anyone. Don't follow this tutorial. This is a security nightmare.

  • @cyberscurityandsoftwaredev
    @cyberscurityandsoftwaredev 7 месяцев назад +1

    Thank you!

  • @JonasKr.
    @JonasKr. 16 дней назад

    very useful tutorial.. thanks a lot man

  • @nicknameis
    @nicknameis Год назад +1

    When I type email on the Login page, context is changing which is causing a full rerender and I can't type a full email - only letter per render.

  • @petlover4153
    @petlover4153 10 месяцев назад +1

    I am a new subscriber when I watched this VDO

  • @Haizenbergo
    @Haizenbergo Год назад +1

    Thanks for this very useful video! Could you show how to realize sign in with google? It will be very interesting.

    • @koding_101
      @koding_101  Год назад +1

      Absolutely , that one of the videos i plan on doing , subscribe to the channel so you dont miss out on that.

  • @youngming7752
    @youngming7752 Год назад +3

    I'm concerned about security here. Since we are entering a 4 digit code to reset a password, a brute force attack can reset any password in a short time.

    • @koding_101
      @koding_101  Год назад +2

      Yes, That's a great point , what i would suggest as a further improvement to this would be to give the password a timeline , say 4 minutes and then once the 4 minutes has elapsed , the 4 digit code expires. You can also limit the number of tries.

    • @youngming7752
      @youngming7752 Год назад +1

      @@koding_101 Yes but brute forcing a 4 digit code takes seconds. Increasing the code length and adding characters would fix the issue, even tho it impacts the user experience in a negative way. I would prefer a reset link that's being sent to the email

    • @koding_101
      @koding_101  Год назад +2

      Good on you for noticing this important cybersecurity point.

    • @koding_101
      @koding_101  Год назад +2

      You know what , i just did a bit of research on it and you are exactly right , most professionals do however recommend a 6 digit code, because a 6 digit pin has 1 million combinations which is not practical to bruteforce. , and i've actually noticed that being a trend in many major corporations.

  • @sibanandanayak22
    @sibanandanayak22 Год назад +1

    can u shar github linke for this project please

  • @sdfsfsfd437
    @sdfsfsfd437 Год назад +2

    Thanks a lot! Very useful video! 💯👍

    • @koding_101
      @koding_101  Год назад +1

      Thank you very much , my absolute pleasure.

  • @leog1676
    @leog1676 Год назад +1

    Awesome video my friend, thank you.

    • @koding_101
      @koding_101  Год назад

      My absolute pleasure , feel free to suggest more videos.

  • @talhahaider2186
    @talhahaider2186 Год назад +1

    Thanks sir ❤❤

  • @daGunnpreet
    @daGunnpreet Год назад

    Can I unlock my Oneplus 8 pro screen look of 6 digit pin without losing my data ? Pls reply

  • @morganmugo5181
    @morganmugo5181 6 месяцев назад

    Always provide a readme for your repos.

  • @crackedboy701
    @crackedboy701 Год назад +1

    i started watching this video of yours ruclips.net/video/MJhsVDpYzQs/видео.html then came here and then everything is so different. can you make a playlist that started from the beginning to this? because it's so confusing

    • @koding_101
      @koding_101  Год назад

      I understand your confusion and I apologize for that. I will do my best to help you navigate through the different videos and make it easier for you to follow along.
      I recommend starting with the video that you mentioned, which is a good introduction to automatically sending emails with JavaScript. From there, you can check out my playlist on RUclips with the link below where I have organized my videos in a logical sequence.
      bit.ly/3Z4LUPP

  • @rokaiaissocute
    @rokaiaissocute 7 месяцев назад +2

    you talk way too much