Getting user passwords

Getting user passwords

Chardelle Busch tomonidan -
Number of replies: 3
Core developers rasmi

I have a notifications plugin that sends out emails with user variables.  A client wants to send user's their username and password--yikes!!  Before I tell him "No, I cannot get a user's password".  Can someone please validate for me (in case there is any question) that yes, indeed it is not possible to get a user's (unhashed of course) password from the database.

Thanks so much.

O'rtacha reytinglar: -
In reply to Chardelle Busch

Re: Getting user passwords

Tim Hunt tomonidan -
Core developers rasmi Documentation writers rasmi Particularly helpful Moodlers rasmi Peer reviewers rasmi Plugin developers rasmi

You are correct. Moodle stores a one-way hash of the users password. That is standard best practice.

What your client is asking for is (all too common) worst practice. You need to educate them.

In reply to Tim Hunt

Re: Getting user passwords

Chardelle Busch tomonidan -
Core developers rasmi

Thanks for quick response Tim, I appreciate it.  This will help me convince them.  I am going to send the reset password link in the email instead, in the hope that will pacify them.