This topic is locked

Administrative Password Reset

3/4/2008 10:49:05 AM
PHPRunner General questions
Microe author

I'm trying to add a page to allow administrators to reset the password for a current user without knowing the old password. This is for those users that forget their password. I have encryption turned on, so I am not sure how I encrypt the new password?

J
Jane 3/5/2008

Mike,
use md5() function to encrypt password in the Before record updated event:

$values["FieldName"] = md5($values["FieldName"]);