[SOLVED]How to find out admin password for versions 1.10+

General project discussion. NOT for help questions.
Post Reply
blackhawk
Power Poster
Power Poster
Posts: 280
Joined: Mon Oct 20, 2008 6:07 pm

[SOLVED]How to find out admin password for versions 1.10+

Post by blackhawk »

How do we either find out or reset admin account passwords for cmsms 1.10 and up? This guide only works for cmsms systems below 1.10...
http://wiki.cmsmadesimple.org/index.php ... d_password

thanks
Last edited by blackhawk on Fri Apr 06, 2012 12:38 pm, edited 1 time in total.
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm

Re: How to find out admin password for versions 1.10 and up?

Post by Jos »

thile
Forum Members
Forum Members
Posts: 25
Joined: Mon Aug 25, 2008 3:57 pm

Re: How to find out admin password for versions 1.10 and up?

Post by thile »

val = md5(get_site_preference('sitemask','').$password);
Lookup the sitemask value in cmsms_siteprefs and insert it before the wanted password and then run the md5 algorithm.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: [SOLVED]How to find out admin password for versions 1.10

Post by Wishbone »

.. which will only work if you don't salt your passwords in 1.10.*
bess
Language Partners
Language Partners
Posts: 282
Joined: Thu Dec 18, 2008 9:37 am

Re: [SOLVED]How to find out admin password for versions 1.10

Post by bess »

an universal solution with only one query :
update cms_users set password = (select md5(CONCAT(IFNULL((SELECT sitepref_value FROM cms_siteprefs WHERE sitepref_name = 'sitemask'),''),'NEW_PASSWORD'))) where username = 'USER_NAME'
works with cmsms < 1.10.x, cmsms >= 1.10.x, with or without salt password

more informations on :
http://www.linkedin.com/groupItem?view= ... re-0-b-ttl (you must be member of cmsmadesimple's group
Insidea
New Member
New Member
Posts: 6
Joined: Tue Sep 23, 2008 9:36 pm

Re: [SOLVED]How to find out admin password for versions 1.10

Post by Insidea »

Lovely query bess, thank you, most probably solved our "change all client websites' CMSMS password"

regards,
Vaclav
bess
Language Partners
Language Partners
Posts: 282
Joined: Thu Dec 18, 2008 9:37 am

Re: [SOLVED]How to find out admin password for versions 1.10

Post by bess »

sincerely happy to see that it can be helpful ;)
Post Reply

Return to “General Discussion”