Not logged in. · Lost password · Register

All posts by hgc2002 (1)

topic: Lost admin password  in the forum: General Help and Support Installation and Configuration
Avatar
hgc2002 #1
Member since Jan 2016 · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: Disable password verification, change password and re-enable verification
this has been tested in 2015-08-10a "Detritus" version.

in <dokuwiki home>/inc there is a file "PassHash.class.php" that does the password verification.

go to "verify_hash($clear, $hash)" function and simply add a "return true;" after the beginning.

then login with the user you want to recover. don't worry about the password you enter.

after login has succeded, go to "Update Profile" and change your password normally.

finally, go to "verify_hash($clear, $hash)" function and delete the "return true;" you added before.

from this point, everything will be back to normal: you know your new password and your wiki works as usual.
Close Smaller – Larger + Reply to this post:
Special characters:
Special queries
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-10-16, 06:55:11 (UTC +02:00)