I removed Salt function, I can't log in anymore

Your code modifications and patches you want to share with others.
Locked
kaanay
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Jan 07, 2010 11:40 am

I removed Salt function, I can't log in anymore

Post by kaanay » Wed Jan 05, 2011 9:50 am

I removed Salt function in user.php (root\joomla\libraries\joomla\user) as explained in this post. (http://forum.joomla.org/viewtopic.php?p=1882268 )

I changed from this

Code: Select all

$salt  = JUserHelper::genRandomPassword(32);
$crypt = JUserHelper::getCryptedPassword($array['password'], $salt);
$array['password'] = $crypt.':'.$salt;
to this

Code: Select all

$salt  = JUserHelper::genRandomPassword(32);
$crypt = md5($array['password']).':'.base64_encode($array['password']);
$array['password'] = $crypt;
Hack is Ok. I is coding the password again. But the problem is "I can't login" with the new password. I think I bhave to change some another files(s) it to work correctly.

Can you help me please?

User avatar
ooffick
Joomla! Master
Joomla! Master
Posts: 11614
Joined: Thu Jul 17, 2008 3:10 pm
Location: Ireland
Contact:

Re: I removed Salt function, I can't log in anymore

Post by ooffick » Fri Jan 07, 2011 10:07 am

Did you change all of the information in that file.

Olaf
Olaf Offick - Global Moderator
learnskills.org


Locked

Return to “Core Hacks and Patches”