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

Your code modifications and patches you want to share with others.
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

Postby 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: 11062
Joined: Thu Jul 17, 2008 3:10 pm
Location: Ireland
Contact:

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

Postby ooffick » Fri Jan 07, 2011 10:07 am

Did you change all of the information in that file.

Olaf
Olaf Offick - Global Moderator
http://learnskills.org


Return to “Core Hacks and Patches”

Who is online

Users browsing this forum: No registered users and 1 guest