-
-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reset password #684
Comments
If you have it enabled on your settings, you can just click the link on the login page. Otherwise Assuming you have access to your mounted folders
and run on your browser |
Sorry for the late response. I added the resetpw.php file in the same folder of "db", "images" but going to http://ip:port/db/resetpw.php I got this: seFile = 'wallos.db'; $db = new SQLite3($databaseFile); $db->busyTimeout(5000); $password = "MYNEWPWD"; $sql = "UPDATE user SET password = :password WHERE id = 1"; $stmt = $db->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."; } ?>``` but still can't login with the new password. |
There seems to have been a problem with the copy and paste of the code. |
Yeah, my bad. Realized the code I copied from email notification was truncated.
the resetpw.php added into /var/www/html using portainer console. |
Is there a way to reset password?
The text was updated successfully, but these errors were encountered: