Reset Password not working

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
yinsw
User
Posts: 148
Location: Penang, Malaysia

Reset Password not working

Post by yinsw »

PHPMaker v2024.9

When Reset Email, we will receive the email. Clicking on the email will open the Change Password page. After enter the new password and submit, the below error is shown:

log.ERROR: Slim Application Error Type: Exception Code: 0 Message: Entity class for UpdateTable not found. File: D:\mywebsite\myproject\models\ChangePassword.php Line: 334

arbei
User
Posts: 9384

Post by arbei »

Are you using a view as the user table? Also see viewtopic.php?t=58158.


yinsw
User
Posts: 148
Location: Penang, Malaysia

Post by yinsw »

Yes, correct. All my modules are using Views including the Users.

Based on your reference, is it that I need to add the following in Change Password Page -> Page_Load event?

function Page_Load()
{
    //Log("Page Load");
    $table_name="VIEW_USERS";
    $this->UpdateTable = $table_name;
}

arbei
User
Posts: 9384

Post by arbei »

The UpdateTable should be the actual users table with the password field, not the view that is used as "users table" in the project.


yinsw
User
Posts: 148
Location: Penang, Malaysia

Post by yinsw »

I have tested and nope, it didn't work if I set it to my actual table name since I didn't use it in my project and I also didn't check it in my project.

Actual table name: sys_tbl_users
My view: sys_users (all the fields in this view is exactly the same as the actual table)

In my project, I only checked on the sys_users checkbox and configured my Security using sys_users. For this to work, I need to add the following in the Change Password Page->Page Load and Password Recovery Page -> Page Load. I'm don't understand why I need to set it since it's the same as the view I'm using?

function Page_Load()
{
    //Log("Page Load");
    $table_name="sys_users";
    $this->UpdateTable = $table_name;
}

arbei
User
Posts: 9384

Post by arbei »

arbei wrote:

The UpdateTable should be the actual users table

But yinsw wrote:

Actual table name: sys_tbl_users
$table_name="sys_users";
$this->UpdateTable = $table_name;


Post Reply