Announcement

#1 2021-07-23 01:16:46

jrowe
Member
2021-07-23
1

Lost password

First, I'd like to say, Piwigo is great! I enjoy using it. But, I've lost my admin password. The one I recorded doesn't work - please help me or advise me how I can recover it or create a new one.
My installation is on a Proxmox home server - it's a Debian VM.

Offline

 

#2 2021-07-23 10:54:45

erAck
Only trying to help
2015-09-06
1504

Re: Lost password

Put this

Code:

<?php
$password = 'yournewpassword';
define('PHPWG_ROOT_PATH','/var/www/html/piwigo/');
include_once(PHPWG_ROOT_PATH.'include/functions.inc.php');
echo pwg_password_hash($password) . "\n";
?>

(of course adapt the PHPWG_ROOT_PATH setting and yournewpassword ...) in a file, either to be invoked as
php filename.php
from the (ssh) command line, or reachable in your web server's document root, for example /var/www/html/mypassword.php
In the latter case point your browser to it, it'll display some $P$G... string, copy that. Remove the file.
Open your Piwigo database using phpMyAdmin or whatever tool you have, in table piwigo_users locate your admin user (probably first record), edit that and paste the hash string into the password field.
Close database, remember password ;)

Note that putting the password into the PHP snippet file may be unsafe if malicious actors have access on file level, you may want to use a form then instead.

Also, this assumes that you did not change
$conf['password_hash'] = 'pwg_password_hash';
in your Piwigo config. If you did, then adapt.


Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2021-12-10 21:38:02

cmprior
Member
2021-12-10
5

Re: Lost password

Many thanks. Had not found this earlier. Now back into the system as admin user.

Much appreciated.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2022 · Contact