#10. How to Change Password in CodeIgniter 4

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ม.ค. 2025

ความคิดเห็น • 4

  • @kami1597
    @kami1597 ปีที่แล้ว

    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 7 หลายเดือนก่อน

      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 7 หลายเดือนก่อน +2

      @@JeremiahJ Thank you...