PHP Forgot Password Recovery system for your website + source code | Quick programming tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ต.ค. 2024
  • Make a simple password recovery system for your website users, using gmail or yahoo smtp servers and some php with mysql.
    project files:
    drive.google.c...
    simple signup and login:
    • Simple signup and logi...
    advanced signup and login(OOP):
    • Simple signup form val...
    how to send emails via localhost:
    • Send emails from local...
    more tutorials:
    make a social website from scratch:
    • Social Website from sc...
    all crash courses:
    • JSON Crash Course in P...
    code a live chat app in PHP and JavaScript:
    • Live chat app from scr...
    make an eCommerce website from template:
    • #00 PHP Ecommerce webs...
    convert an HTML template to PHP website:
    • HTML Template to PHP W...
    simple signup and login system & security:
    • Simple signup and logi...
    crop images with PHP:
    • PHP - Web Design - How...
    PHP Object Oriented Programming basics:
    • #00 PHP Object Oriente...
    Chart or graph using SVG:
    • HTML Chart using SVG, ...
    Responsive web design:
    • Responsive Web Design ...
    clean pretty URLs:
    • PHP - How to get prett...
    support me on patreon:
    / quickcode
    my facebook:
    quickcode

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

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

    Thanks for the great video! The only issue I had was I had my 2 step verification on in my gmail account, and I was testing it with my regulat gmail password and it did not work. Once I created and used an extra app password through the 2 step verification links, it worked like a charm!! Thanks again!

  • @juneldelacuadra5973
    @juneldelacuadra5973 2 ปีที่แล้ว

    This is the most detailed tutorial ever in TH-cam. Thank you so much for your effort !

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

    I don't usually comment on videos but this one leave me with no hope it's more than good for me to keep quiet ..♥️♥️♥️🤯 immediately I just subscribed and hit bell all

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

      Wow, thank you for the compliment and thanks for the sub as well :)

  • @fal8202
    @fal8202 3 ปีที่แล้ว +3

    You did it again , congrats for the great job of explaining your thinking process during coding while making the experience enjoyable !
    one question though: i have followed your MVC model which you created in another video , so to include a PW recovery part within this model , where should i position the mail.php file and the PHPMailer_master? i put both in controller folder but i keep getting errors like "Warning: require(../controllers/PHPMailer-master/src/Exception.php): Failed to open stream: No such file or directory in C:\xampp\htdocs\Memo\app\controllers\mail.php on line 7", appreciate your feedback .

    • @QuickProgramming
      @QuickProgramming  3 ปีที่แล้ว

      usually extra functionality should be added in the models folder. just keep in mind that all references to include files are relative to the public folder. so if i want to include a file from the models folder, it would be like this:
      include("../app/models/file.php");
      so add your files in there and try that

    • @fal8202
      @fal8202 3 ปีที่แล้ว

      @@QuickProgramming thanks for your reply , I have used :
      require "".__DIR__."/PHPMailer-master/src/Exception.php"; and so on for the rest of the Mailer files, my problem was that I was using :
      require "".ROOT."/PHPMailer-master and ROOT was path constant that did not lead to the PHPMailer file.
      so this use of ._DIR_. worked just fine.

    • @QuickProgramming
      @QuickProgramming  3 ปีที่แล้ว

      @@fal8202 oh i see. ist because ROOT has http::localhost and not the actual path. you're right to use __DIR__ its the proper way

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

    One thing I have noticed with your code is it is very simplified. The one thing I do not understand is why you do not use prepared statements when you are working with mysql database. It is known this is a security flaw to avoid "sql injections." Regardless if you are working with a "localhost" for those who want to use these on a LIVE server, may be put at risk. Has something changed recently that this is not practiced anymore? These should be meant as STRICTLY as tutorials and not a means of use on public servers. Correct me if I am wrong here.

    • @QuickProgramming
      @QuickProgramming  2 ปีที่แล้ว +3

      yes, its always better to use prepared statements. i use them in more detailed videos on the channel, however they are not good for teaching purposes when it comes to simple code like this. its better to learn the basics first, then advance to prepared statements later if you need to. a bomb is good at destroying things, but its not always the best tool.
      in my code i use "addslashes" function to escape any suspicious text in the variables. this is usually enough to block sql injection. unless you're running a bank or financial institution, this is more than enough. people who run banks and applications that need more security than that are not on youtube watching tutorials because they are already professionals. this is why i dont bother with prepared statements on such small projects.
      if you want to learn prepared statements, check these videos:
      th-cam.com/video/gpCDo0DdqBU/w-d-xo.html
      th-cam.com/video/pIO0pmMTJ6Y/w-d-xo.html

  • @jodhaniarpit8949
    @jodhaniarpit8949 7 หลายเดือนก่อน +1

    Hii password not show in database and not login to email id and password (changed password)

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

    wow very awesome i love this tuturial thanks for the video
    indeed you channel is awesome.
    Keep up the good work i appreciate

    • @QuickProgramming
      @QuickProgramming  2 ปีที่แล้ว

      thanks for the feedback and you're most welcome :)

  • @fikrirazi5017
    @fikrirazi5017 10 หลายเดือนก่อน

    Sir, in the forgot script, my variable $con cannot be read at function send_email, function save_password, and function is_code_correct. Do i need to assign new value on that $con?

  • @JoyJones-qg4yl
    @JoyJones-qg4yl 8 วันที่ผ่านมา

    Do you have a tutorial for forgot username as well.

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

    I am getting SMTP connect() failed error. I got an e-mail once succesfully but then nothing.

  • @xyznikk
    @xyznikk 2 ปีที่แล้ว

    49:41 Hey i have a question,shouldn't you hash the token incase of a hackers or it doesn't matter?

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

    Hello l have question why in search bar i still can access enter_code and enter_password my session not working can you help me

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

    How can i delete old codes as not to take up space? Also, do you have a video where you use prepared statements?

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

      code doesnt usually take up much space, so if you're not sure which code to delete on a working website, better to not delete anything or you may risk deleting useful stuff. If you wrote the code yourself, then you would know what to delete on your own.
      i use prepared statements in these two videos:
      th-cam.com/video/gpCDo0DdqBU/w-d-xo.html
      th-cam.com/video/pIO0pmMTJ6Y/w-d-xo.html

  • @emir.siriner
    @emir.siriner 3 ปีที่แล้ว +1

    Very good work. Thanks for share...

    • @QuickProgramming
      @QuickProgramming  3 ปีที่แล้ว

      Thank you!

    • @mfs6165
      @mfs6165 3 ปีที่แล้ว

      Lan aha Türk nasılsın 😅😅

  • @lawrencestixx2394
    @lawrencestixx2394 2 ปีที่แล้ว

    amazing video but i did not recieve any mail when I tried it out..i got an error instead

  • @moradayari1749
    @moradayari1749 3 ปีที่แล้ว

    hii are u gonna do athoer project in other langauge like java mayby?

    • @QuickProgramming
      @QuickProgramming  3 ปีที่แล้ว

      no, only php, javascript and related technologies. i'll open another channel for python and java

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

    Good evening good sir I trying to use the on the mvc website, where the forms are in the view file and the switch statement is in the controller file but it doesn't seems switch the form when I click the next button, can you assist with this if possible

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

      that could be caused by the GET variables not being passed properly in your URLs. also if the session isnt working properly to store data

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

    ❤❤

  • @anselmdike2817
    @anselmdike2817 3 ปีที่แล้ว +2

    Nice ...

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

    The code not sent to my Gmail

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

    good videoo 🤩🤩

  • @khanmiraj1703
    @khanmiraj1703 2 ปีที่แล้ว

    PHPMailer system is not code not working, code not send to email

    • @QuickProgramming
      @QuickProgramming  2 ปีที่แล้ว

      what error do you get?

    • @khanmiraj1703
      @khanmiraj1703 2 ปีที่แล้ว

      @@QuickProgramming register or login everything ok ,but my mail box not send email

  • @mfs6165
    @mfs6165 3 ปีที่แล้ว

    Wow

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

    There's a little problem, everything works fine but the new password doesn't get updated in the database because of that I can only login using the old password. I rechecked the code along with the video. I didn't find any errors. Please help!

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

      probably something wrong with the query that should make the changes. echo the query, copy it and paste it directly in phpmyadmin on the SQL tab and run it to see if it works or shows an error

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

      @@QuickProgramming I don't quite understand how to echo the query. Help plz

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

      @@Dihansa468 echo $query;
      You put that code after creating the query. You may also want to watch my beginner video on php. Search my channel for 'php beginner tutorial'. It explains most of this stuff🙂

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

      @@Dihansa468 watch this video th-cam.com/video/0CFQmcrP2dE/w-d-xo.html

  • @hammadarif4794
    @hammadarif4794 2 ปีที่แล้ว

    sir code not recived in the mail need help

    • @QuickProgramming
      @QuickProgramming  2 ปีที่แล้ว

      if you're using phpmailer, it may be the issue. use the simple mail function that comes with php but on a live server

  • @khanmiraj1703
    @khanmiraj1703 2 ปีที่แล้ว

    When login then not showing index file

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

    Video is soo much useful but the source code file has viruses don't download this link

  • @SirCruz-ms5jp
    @SirCruz-ms5jp 2 ปีที่แล้ว +2

    Hello sir, Why didn't I get any mail? I copied your source code. It was only received in the database and not in my inbox (Gmail).

    • @oloyedetaiwo8960
      @oloyedetaiwo8960 2 ปีที่แล้ว

      I'm new to this but can you send me the source code to this project

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

      Did you find solution ?

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

    ❤❤