DokuWiki

It's better when it's simple

User Tools

Site Tools


faq:forgotten_password

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Both sides next revision
faq:forgotten_password [2013-09-05 16:33]
194.160.222.215
faq:forgotten_password [2020-05-07 16:06] (current)
Michaelsy
Line 9: Line 9:
 :!: You can :!: You can
   - register a new user   - register a new user
-    * in case you are unable to register check local.php 8-) 
   - open ''conf/local.php''   - open ''conf/local.php''
     * change the superuser to your newly registered user <code>$conf['superuser'] = 'foo';</code>     * change the superuser to your newly registered user <code>$conf['superuser'] = 'foo';</code>
Line 21: Line 20:
   - login again as the old user   - login again as the old user
   - and delete the new one again (not necessary, but advisable if you're concerned about security)   - and delete the new one again (not necessary, but advisable if you're concerned about security)
 +
 +:?: What if I **am the admin** and I **turned off** registration?
 +
 +:!: 
 +  - open ''conf/users.auth.php''
 +  - add new line for temporary user <code>deleteme:$1$4fd0ad31$.cId7p1uxI4a.RcrH81On0:-:-:admin,user </code> where ''$1$4fd0ad31$.cId7p1uxI4a.RcrH81On0'' is hashed ''admin''
 +  - login for user: ''deleteme'' with password ''admin''
 +  - change the password of your old user
 +  - logout
 +  - login as the old user
 +  - delete ''deleteme'' user
 +
 +===== See also =====
 +
 +  * [[https://forum.dokuwiki.org/post/69304|A forum post with an alternative method]]
  
faq/forgotten_password.1378391638.txt.gz ยท Last modified: 2013-09-05 16:33 by 194.160.222.215