How to make another tab for changing passwords if the user doesn’t have admin access.
]]>Textpattern passwords are encrypted in the database, so you can’t quite just go in and see/replace the passwords with anything you’d like. But here’s what you can do:
If you have a textpattern install with a password that you’ve forgotten/misplaced/lost the scrap of paper you wrote it down on, you can edit one of the users via mysql and change the password field to:
930d0177e9cb358cfc78dd550b
Then log in with the password:
Passw0rd
(that’s a zero, not an OH)
The other way to do it is to run the following query in phpMyAdmin:
UPDATE txp_users SET pass = PASSWORD('newpass') WHERE name = 'loginName';
or
UPDATE PFXtxp_users SET pass = password('NEW_PASSWORD') WHERE user_id = 'USER_ID_OF_USER'
where PFX is the prefix you set in your TXP config (make sure you wrap the whole thing in backticks, though not doing so probably won’t have an effect), NEW_PASSWORD is the new password you want, wrapped in single quotes. USER_ID_OF_USER is the user_id of the user whose password you want to reset.
Thanks to “Ray”: ryanschwartz and greenrift for these answers.
Marcus Geiger has written instructions in German.
]]>However, if you are not the primary or first registered user on the site, and are not granted admin access (only ‘Publishers’ and ‘Managing Editors’ have that access) then you have no such ‘admin’ tab and as such, you may think (like I did) that you cannot change your password.
Ah, but you can change your password. Point your browser to ?event=admin
e.g. http://textpattern.org/textpattern/index.php?event=admin and you will find (as long as you are a registered user on the site) that you do have access to that panel, after all.
Site owners, if you would like to know how to protect your list of authors from being viewed by everyone, then visit the entry on Hiding the Authors List .
thanks to Manfre for this
]]>