• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

Recover admin Password

Status
Not open for further replies.

anmolgill

Chevereto Member
Hi Rodolfo
Can you please help me to recover admin password as my website is not sending recovery mail
i have tried lots time

Freshpic.xyz

username gary


Thanks for help
 
Hey @anmolgill

I'm afraid that with that info I can't help you and since passwords are bcrypted, even with server access I won't be able to recover your password. You should access with another user account and make that account admin by editing the field "is_admin" from chv_users.

Best,
Ricardo.
 
You can also force a password rehash by using the built in Login class methods. In that case you need to run some php code at your end for that target user.
 
For that i have to. Make new user
But how can i enable registration for new users so i can register and make that user as admin
Is it possible to enable new registration from database or editing php files

Thanks
 
No, you can't. Like I said, passwords are all hashed you need to inject a password rehash, is all php.
 
Run this:

PHP:
$user['id'] = <TARGET USER ID>;

// Delete any old cookie/session login for this user
CHV\Login::delete(['type' => 'cookie', 'user_id' => $user['id']]);
CHV\Login::delete(['type' => 'session', 'user_id' => $user['id']]);

// Insert the new login DB if needed
if($_COOKIE['KEEP_LOGIN']) {
    CHV\Login::insert(['type' => 'cookie', 'user_id' => $user['id']]);
}
                   
CHV\Login::changePassword($user['id'], <NEW PASSWORD>);
 
Run this:

PHP:
$user['id'] = <TARGET USER ID>;

// Delete any old cookie/session login for this user
CHV\Login::delete(['type' => 'cookie', 'user_id' => $user['id']]);
CHV\Login::delete(['type' => 'session', 'user_id' => $user['id']]);

// Insert the new login DB if needed
if($_COOKIE['KEEP_LOGIN']) {
    CHV\Login::insert(['type' => 'cookie', 'user_id' => $user['id']]);
}
                  
CHV\Login::changePassword($user['id'], <NEW PASSWORD>);

recovered by making another user as admin
 
Status
Not open for further replies.
Back
Top