lordcrackerB
Create a file resetpw.php in endpoints/cronjobs/
Paste the following code:
prepare($sql);
$hashedPassword = password_hash($password, PASSWORD_DEFAULT);
$stmt->bindParam(':password', $hashedPassword, SQLITE3_TEXT);
$result = $stmt->execute();
if ($result) {
echo "Password updated successfully.";
} else {
echo "Error updating password.";
}
Change mynewpassword to your desired password. If your environment is different, please set $webPath manually.
Then run on your browser: domain:port/endpoints/cronjobs/resetpw.php
Finally, delete the resetpw.php file so it can’t be unintentionally triggered again.I haven’t tested the code, but it should work.
It’s being worked on. Keep an eye on https://github.com/ellite/Wallos/issues/9 . It will be updated when this is available.