0

Is it possible to get the users unencrypted password in an onUserAfterSave even in a plugin? If so how?

I tried using $user->password_clear but that is blank.

user794846
  • 1,881
  • 5
  • 29
  • 72
  • possible duplicate of [using php to create a joomla user password?](http://stackoverflow.com/questions/2727043/using-php-to-create-a-joomla-user-password) – arslan Dec 17 '13 at 09:28

2 Answers2

1

Joomla use md5 hash to store password which is many to one mapping. So its almost impossible to recover JOOMLA password from md5 hash.

To change password just generate another md5 hash and replace it in database.

arslan
  • 565
  • 1
  • 7
  • 25
0

You may retrieve the unhashed password using $_POST['password']

Le Lance
  • 1
  • 3