-
-
Notifications
You must be signed in to change notification settings - Fork 500
How to Reset Your Admin User Password
Kyle Gabriel edited this page Jun 30, 2020
·
4 revisions
If you cannot log in to Mycodo because you forgot your password, you have a few options to access your system again. Unless you have another admin account that you can log in and change your other user's password, you're going to have to either A) Delete the admin user from the database then restart the web UI to induce the creation of another admin user, or B) Delete your entire database and restart the web UI to create a new database and initialize the admin user creation page.
- Download SQLiteStudio
- Download your mycodo database at ~/Mycodo/databases/mycodo.db to your local computer
- Open the database with SQLiteStudio and delete all admin users in the User table, then save
- Upload mycodo.db back to the remote system
- Restart the web UI with
sudo service mycodoflask restart
- Visit your web interface and you will be presented to create a new admin user
Note: Deleting your database will mean you will be starting from scratch and will need to add all your inputs, PIDs, etc. again.
- Stop the Mycodo daemon with
sudo service mycodo stop
- Delete your Mycodo database with
rm -rf ~/Mycodo/databases/mycodo.db
- Restart the web UI with
sudo service mycodoflask restart
- Visit your web interface and you will be presented to create a new admin user
- Start the Mycodo daemon with
sudo service mycodo start