![]() |
What is wrong with this password update process? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17) +--- Thread: What is wrong with this password update process? (/showthread.php?tid=78739) |
What is wrong with this password update process? - Ajax30 - 03-04-2021 I am working on a basic blog application in Codeigniter 3.1.8 and Bootstrap 4. I have added a registration and login system to this application. I am current working on a password reset system. For a reason I have not been able to figure out, the password update process is flawed. I don't know if the issue is with the controller or the model. In the controller I have: PHP Code: class Newpassword extends CI_Controller { In the model: PHP Code: public function set_new_password($token, $enc_password) { The form that is used to set the new password: PHP Code: <?php echo form_open(base_url('newpassword/add')); ?> Where is my mistake? RE: What is wrong with this password update process? - php_rocs - 03-04-2021 @Ajax30, What error messages are you getting? RE: What is wrong with this password update process? - Ajax30 - 03-04-2021 (03-04-2021, 08:18 AM)php_rocs Wrote: @Ajax30, No error message. Check the branch. ![]() RE: What is wrong with this password update process? - iRedds - 03-04-2021 $token = '' RE: What is wrong with this password update process? - Ajax30 - 03-04-2021 (03-04-2021, 09:10 AM)iRedds Wrote: $token = '' What line? What is wrong with it? RE: What is wrong with this password update process? - iRedds - 03-07-2021 PHP Code: class Newpassword extends CI_Controller { You pass it to a method, but it's empty. PHP Code: // add() PHP Code: <?php echo form_open(base_url('newpassword/add')); ?> |