Secure login, register system with PHP and MySQL | Part 3 - Reset Forgot Password

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ม.ค. 2025

ความคิดเห็น •

  • @299bananas
    @299bananas ปีที่แล้ว

    This was such a good tutorial, thanks! You should consider adding email validation (for new registrations) and a function for the user to change their password. Also, your password reset overwrites the user's current password, which a malicious user could abuse to frustrate the account owner. I think your tutorial gave all the required info for me to add those features myself though. Much appreciated!

    • @DigitalFox-tutorials
      @DigitalFox-tutorials  ปีที่แล้ว

      Thank you.
      I have a tutorial on my website of a login system with email verification.
      Check it out:
      digitalfox-tutorials.com/tutorial.php?title=Coding-a-registration-system-with-email-verification-using-php-and-mysql
      As for the password reset action the malicious user has to know the registered user's email. But it gave me some thought.

  • @RodolphoArrudanogoogle
    @RodolphoArrudanogoogle 5 หลายเดือนก่อน

    Excellent.

    • @RodolphoArrudanogoogle
      @RodolphoArrudanogoogle 4 หลายเดือนก่อน

      Now I'm watching this video for the second time and giving it a better thought.
      Instead of creating the password and sending it, I would just send a link to a password creating page. In that page, I would take the new password, generate the hash and then direct the user to the login page.
      Additionally, I would build logic into the function that if the password has already been reset, a message would inform the user about it. So the password would not be accessible in the user's inbox, nor the reset link could be used more than once.
      That would force a bad actor to access the victim's inbox again, which may fail due to actions taken by the email service provider or the user themselves later on.

  • @bnyamine7181
    @bnyamine7181 11 หลายเดือนก่อน +1

    Can you add a link for the user, and when he logs in, a page appears: Enter the new password and confirm the password. He is the one who changes the password.

    • @DigitalFox-tutorials
      @DigitalFox-tutorials  11 หลายเดือนก่อน +1

      Yes that's easy but the problem is that i can not update the current video. Maybe i will make a new one.

    • @ElaGeorge
      @ElaGeorge 3 หลายเดือนก่อน

      have you uploaded that part Sir?​@@DigitalFox-tutorials

  • @User97356
    @User97356 ปีที่แล้ว

    Thank you

  • @LinuxZombie
    @LinuxZombie 2 ปีที่แล้ว +1

    Do a how to change password once logged in?

    • @DigitalFox-tutorials
      @DigitalFox-tutorials  2 ปีที่แล้ว +1

      Good idea

    • @ABDTalk1
      @ABDTalk1 ปีที่แล้ว +1

      @@DigitalFox-tutorials I'm not that experienced, but I assume it's fairly simple.

    • @DigitalFox-tutorials
      @DigitalFox-tutorials  ปีที่แล้ว

      @@ABDTalk1 Yes it is, i will try to make a video on it.

    • @jdjskndnsnnd6620
      @jdjskndnsnnd6620 ปีที่แล้ว +1

      Hi Im in local host I keep getting failed to connect to mail server at local host port 25 verify your SMTP or use ini_set() in functions

  • @bnyamine7181
    @bnyamine7181 11 หลายเดือนก่อน

    How do I create such a system with php oop

    • @DigitalFox-tutorials
      @DigitalFox-tutorials  11 หลายเดือนก่อน

      You have to learn writing classes, but it's a good idea for a future tutorial. Thanks.
      I have something similar, but it is one of my early videos with no voice over only subs. Check it out.
      th-cam.com/video/HyyAg0cI5N8/w-d-xo.html

  • @itgoldmart3321
    @itgoldmart3321 ปีที่แล้ว

    The new password is not sent through email.

    • @DigitalFox-tutorials
      @DigitalFox-tutorials  ปีที่แล้ว

      Is the email delivered without the new password? Or is it not send at all?