user794846
user794846

Reputation: 1931

Getting the users password in an onUserAfterSave event via a plugin

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.

Upvotes: 0

Views: 228

Answers (2)

Le Lance
Le Lance

Reputation: 1

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

Upvotes: 0

arslan
arslan

Reputation: 585

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.

Upvotes: 1

Related Questions