• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

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