Forgot Password Script PHP mysqli database

后端 未结 3 1445
耶瑟儿~
耶瑟儿~ 2021-02-11 11:35

Hi I am trying to make forgot password script and successfully completed but I am getting one problem. In forgot.php When user enter email, script checks the email

3条回答
  •  故里飘歌
    2021-02-11 12:15

    You need to change the action from resetpass.php to resetpass.php?code=

    Otherwise the code gets lost when you submit the form.

    For example: (Not bugfree!)

    
    
        

    New Password:

    But think about some things:

    • Your Code is very unsecure, better try uniqid(rand());
    • With this Code it is possible that two entries got the same code
    • Somebody could try all code poosibilities

提交回复
热议问题