Page 1 of 1
[SOLVED}How to reset password in newer versions?
Posted: Thu Jan 26, 2012 8:54 am
by snowball
The reset command in mysql doesnt work in the newer versions...
In the faq that is mentioned, however no alternative is written there...
So that issue was yesterday, today we found the password but by trying to reset it in the database there must be something been affected couse cannot seem to login at any way :s
CMS version 1.10.3
Anyone?
Re: How to reset password in newer versions?
Posted: Thu Jan 26, 2012 10:11 am
by scelle
Have you tried the "Forgotten password" feature? If you don't know which e-mail address is attached to the admin account, edit it in the 'cms_users' database table.
Just make sure that you change the email for the admin account (has 'admin_access' attribute set to '1').
Hope it helps!
Re: How to reset password in newer versions?
Posted: Thu Jan 26, 2012 12:24 pm
by snowball
Yes also tried that, for some reason the mailer module emails every form thats filled in, but the forgot pasword function does not work, even though i can see the proper emailadres in the database...
Re: How to reset password in newer versions?
Posted: Thu Jan 26, 2012 1:14 pm
by scelle
Have you 'salted' your admin passwords during the installation?
Try pasting this in the '
password' database attribute:
It's 'admin' transliterated in 1.10.

Maybe they've changed the encryption process somehow.
If it doesn't help, I would try reconfiguring the CMSMailer via database. Just go to the 'cms_siteprefs' table and edit appropriate settings (in my database starting with the 'CMSMailer_mapi_pref_' prefix). Put in some known and reliable SMTP server, an authorized user (
password in plain text, and smtpauth to '1' if your SMTP server requires authentification).
Other than that - I don't know what else could be done.
Re: How to reset password in newer versions?
Posted: Thu Jan 26, 2012 1:35 pm
by snowball
Hi Scelle,
Thanks for your reply, I now have the original hash of the original password that I've lost... So I have the hash and the password but in my action trying to reset the password I have changed the md5 hash..
Before trying your solution, I would try changing this hash..
I am not so experienced running sql commands and am carefull...can I just paste the original hash in the field in phpmyadmin and run?
Thanks man!
Re: How to reset password in newer versions?
Posted: Thu Jan 26, 2012 2:56 pm
by scelle
Sure. Just paste it.
Re: How to reset password in newer versions?
Posted: Thu Jan 26, 2012 3:25 pm
by snowball
YESSSSSSSSSS!!!!
Thanks man! That did the trick!!!

Re: [SOLVED}How to reset password in newer versions?
Posted: Thu Jan 26, 2012 5:10 pm
by Wishbone
Isn't there some way to change the password if it was salted? It seems that if you can change the password from the admin panel, you should be able to change the password using phpMyAdmin.
Re: [SOLVED}How to reset password in newer versions?
Posted: Thu Jan 26, 2012 8:10 pm
by snowball
Yep, in phpmyadmin you can change it, just create a md5 hash of a new
password and past that generated hash in the passwordfield of the admin user
To create a md5 hash i used a online md5 generator, filled in a new fresh
password and hit "generate"... that code I used..
Now you can acces the cms with that username and new
password.
Change the
password again and voilla done...
Anyone need screenshot? sent pm..
Credits for user Scelle, i learned from you

Re: [SOLVED}How to reset password in newer versions?
Posted: Thu Jan 26, 2012 8:48 pm
by scelle
Hey, it's nice when you can help.
You should look into that 'Forgotten
Password Function Not Functioning

' issue, though...
Re: [SOLVED}How to reset password in newer versions?
Posted: Thu Jan 26, 2012 9:19 pm
by snowball
OMG yes almost forgot that "little" issue lol, thanks again mate!
Re: [SOLVED}How to reset password in newer versions?
Posted: Fri Jan 27, 2012 4:31 pm
by Wishbone
snowball wrote:Yep, in phpmyadmin you can change it, just create a md5 hash of a new password and past that generated hash in the passwordfield of the admin user
I was asking about 'salted' passwords that are optional, but default in 1.10.* .. The md5 hash generator trick won't work in this case.