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

Поделиться
HTML-код
  • Опубликовано: 25 окт 2024

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

  • @juneldelacuadra5973
    @juneldelacuadra5973 2 года назад

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

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

  • @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 :)

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

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

  • @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:
      ruclips.net/video/gpCDo0DdqBU/видео.html
      ruclips.net/video/pIO0pmMTJ6Y/видео.html

  • @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 11 месяцев назад

    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?

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

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

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

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

  • @JoyJones-qg4yl
    @JoyJones-qg4yl 20 дней назад

    Do you have a tutorial for forgot username as well.

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

  • @waltergermanes4528
    @waltergermanes4528 2 года назад +1

    The code not sent to my Gmail

  • @lawrencestixx2394
    @lawrencestixx2394 2 года назад

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

  • @emir.siriner
    @emir.siriner 3 года назад +1

    Very good work. Thanks for share...

  • @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:
      ruclips.net/video/gpCDo0DdqBU/видео.html
      ruclips.net/video/pIO0pmMTJ6Y/видео.html

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

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

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

  • @anselmdike2817
    @anselmdike2817 3 года назад +2

    Nice ...

  • @ichbalreyvaldo8545
    @ichbalreyvaldo8545 2 года назад +1

    good videoo 🤩🤩

  • @khanmiraj1703
    @khanmiraj1703 2 года назад

    When login then not showing index file

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

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

    ❤❤

  • @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 ruclips.net/video/0CFQmcrP2dE/видео.html

  • @mfs6165
    @mfs6165 3 года назад

    Wow

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

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

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

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

    ❤❤