For this chapter, and for the previous chapter, a humble suggestion. It would be fine if the Uniid is changed, and a new one is generated, and then the reset_password is given with the parameter as the same new Uniid. Otherwise, if we ask for reset password now, and reset password after some time, you will get the same link in both cases in the email. Hope my suggestion is fine.
if you have single parameter in URL $routes->get('reset_password/(:any)', 'YourControllerName::reset_password/$1'); if you have two parameters in URL $routes->get('register/(:num)/(:alpha)') = 'YourControllerName::MethodName/$1/$2'; :any will accept any type value in URL :num will accept only number value in URL :alpha will accept only characters in URL
this is what i'm looking for, thank you for your tutorial it's really helpfull
For this chapter, and for the previous chapter, a humble suggestion. It would be fine if the Uniid is changed, and a new one is generated, and then the reset_password is given with the parameter as the same new Uniid. Otherwise, if we ask for reset password now, and reset password after some time, you will get the same link in both cases in the email.
Hope my suggestion is fine.
it's a good thought
I'm having trouble providing route name while sending form to controller and returning to view. can you please send me the code to reset password?
github.com/gophptrainings/CodeIgniter-4-project
please download whole code from here
@@GoPHP thank you very much
Password is updating but getting 'Unable to reset password, try again'. Why?
how to set the routes.php for reset_password/$tokens
if you have single parameter in URL
$routes->get('reset_password/(:any)', 'YourControllerName::reset_password/$1');
if you have two parameters in URL
$routes->get('register/(:num)/(:alpha)') = 'YourControllerName::MethodName/$1/$2';
:any will accept any type value in URL
:num will accept only number value in URL
:alpha will accept only characters in URL