#10. How to Change Password in CodeIgniter 4

Поділитися
Вставка

КОМЕНТАРІ • 4

  • @kami1597
    @kami1597 11 місяців тому

    When you click on the button, validation does not work. I get an error in the console: change-password:1
    Failed to load resource: the server responded with a status of 500 (Internal Server Error). Please help me figure out what's wrong.

    • @JeremiahJ
      @JeremiahJ 6 місяців тому

      I experienced some challenges debugging, and had the same error. Here's what I did to resolve error: attempt to read property on array error 500
      1. BELOW: Add this to AdminController.php
      use App\Libraries\Hash;
      2. BELOW:
      //Send email notification to user(admin) email address
      $mail_data = array(
      'user'=>$user_info,
      'new_password'=>$request->getVar('new_password')
      I hope this helps - Jeremiah

    • @kami1597
      @kami1597 6 місяців тому +2

      @@JeremiahJ Thank you...