Elgg  Version 6.0
Variables
resetpassword.php File Reference

Go to the source code of this file.

Variables

 $guid = (int) get_input('guid')
 Reset a user's password. More...
 
 $user = get_user($guid)
 
if(!$user||!$user->canEdit()) $password = elgg_generate_password()
 

Variable Documentation

$guid = (int) get_input('guid')

Reset a user's password.

This is an admin action that generates a new salt and password for a user, then emails the password to the user's registered email address.

NOTE: This is different to the "reset password" link users can use in that it does not first email the user asking if they want to have their password reset.

Definition at line 14 of file resetpassword.php.

if (!$user||!$user->canEdit()) $password = elgg_generate_password()

Definition at line 21 of file resetpassword.php.

$user = get_user($guid)

Definition at line 15 of file resetpassword.php.