Recover forgotten password to Cloudlog
I lost my password to my Cloudlog and there is no “forgotten password” built in. I did not succeed by setting $config[‘use_auth’] = false so this is how I did it.
- In the root directory of your Cloudlog installation, create a file called pw.php with the following content (edit the $password variable to the password you want in clear text):
<?php
$password = 'cleartextpasswordhere';
echo password_hash($password, PASSWORD_DEFAULT); - If you don’t have the database password, get it by looking in the file application/config/database.php
- Access your database using phpMyAdmin using the database credentials in the previous step
- Go to the users table and click edit on the row with your username
- Use a web browser and go to http://<your cloudlog url>/pw.php and select and copy the displayed password hash.
- In the user_password field, paste the password hash from step 5 and click Go to save
- Remove the file pw.php from your cloudlog webroot
You can now log in using the new password.