Skip to content

Instantly share code, notes, and snippets.

@zbee
Created July 29, 2015 06:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zbee/38ff6eb7b35ffe54ffac to your computer and use it in GitHub Desktop.
Save zbee/38ff6eb7b35ffe54ffac to your computer and use it in GitHub Desktop.
How to reset your dokuwiki password

If you've lost your password and can't recover it via email but have access to the doku file system, you're still good.

Open up conf/user.auth.php and replace the password of your user with 21232f297a57a5a743894a0e4a801fc3, that will make the password be admin.

@hgc2002
Copy link

hgc2002 commented Sep 29, 2016

this has been tested in 2015-08-10a "Detritus" version.

in /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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment