Page 1 of 1

admin users cant login - no admin available

Posted: 2025-09-01 00:06
by Nicolas
Hi,
I have an old version created with version 6,72 which has been running pretty well, but last friday I was changing and deleting some users from grups and after that things have been getting worse....
First I could log in with my usual admin user, which belonged to a group with had full access to all tables (insert, view, modify, delete), but after the changes, I could not get into any table to view the content (it said I had no permission)
And I could enter on the admin area....

But now I can't log in with this user as it says . Try again - but no luck with several trials.....

I've tried with another user with same privileges, and same problem... thinking on missing password, I've resetted this user password - sendong the mail to do so, but no success

I can still access to the program with a user, that has access to all tables, but no admin priviliges

any hint on what can be wrong? or what data you may need to guide me????
Many thanks

Re: admin users cant login - no admin available

Posted: 2025-09-01 13:45
by saymaad
What you're describing sounds like an issue with the membership_users table, especially the permissions or passwords stored there. If permissions were removed or if users/groups were deleted or corrupted, access issues like these can happen.

Here are a couple of steps that works for current versions of AppGini, might help you regain access with a few tweaks:

1. If you have a backup, try restoring the table membership_users from that backup. That’s the cleanest way to recover your previous user access state.

2. If you don’t have a backup, but you still have access through a non-admin user (as you mentioned), do the following:

Step A: Locate the user with full table access
Browse the membership_users table using phpMyAdmin or a similar tool. Find the user that can still log in and has access to all tables (even if they're not an admin).

Step B: Copy that user's credentials into your config
Open your AppGini application's config.php file (found at the root of your generated app) and set that user as the admin temporarily:

Code: Select all

// In config.php
$adminConfig = [
'adminUsername' => "Paste the memberID of the user who can still log in",
'adminPassword' => "Paste the passMD5 value from the same user's row",
];
After saving the file, try accessing the admin area again. This should give you temporary admin access to fix group permissions or recreate lost users.

Important:
Once you've regained access, it’s highly recommended to reassign the correct permissions to the proper groups and recreate admin users if needed.

Hope this helps!