nigeldodd:
Or how can I reset them?
There is a php password reset script in the useful scripts folder. This is pre-installed on emonPi. Just connect via SSH then run the following and follow the one screen prompts:
$ php ~/usefulscripts/resetpassword.php
For more info see: Troubleshooting — OpenEnergyMonitor 0.0.1 documentation
<?php
print "=======================================\n";
print "EMONCMS PASSWORD RESET\n";
print "=======================================\n";
define('EMONCMS_EXEC', 1);
chdir("/var/www/emoncms");
require "process_settings.php";
$old = false;
$mysqli = @new mysqli(
$settings["sql"]["server"],
$settings["sql"]["username"],
$settings["sql"]["password"],
$settings["sql"]["database"],
$settings["sql"]["port"]
);
if ( $mysqli->connect_error ) {
echo "Can't connect to database, please verify credentials/configuration in settings.php<br />";
This file has been truncated. show original