ConfirmPasswordUsersBaseCommand Class Reference
[Usermanagement]
Confirm assword change of user. More...
Inheritance diagram for
ConfirmPasswordUsersBaseCommand:
Protected Member Functions |
|
do_execute () | |
Execute this command. |
Detailed Description
Confirm assword change of user.
Definition at line 8 of file confirmpasswordusers.cmd.php.
Member Function Documentation
ConfirmPasswordUsersBaseCommand::do_execute | ( | ) | [protected] |
Execute this command.
Reimplemented from CommandChain.
Definition at line 12 of file confirmpasswordusers.cmd.php.
00012 { 00013 $ret = new Status(); 00014 $user = $this->get_instance(); 00015 $pwd = $this->get_params(); 00016 00017 $params = array( 00018 'emailstatus' => Users::EMAIL_STATUS_CONFIRMED, 00019 'emailconfirmationdate' => time() 00020 ); 00021 if ($pwd) { 00022 $params['password'] = $pwd; 00023 } 00024 00025 // Chain next commands 00026 Load::commands('generics/update'); 00027 $this->append(new UpdateCommand($user, $params)); 00028 00029 return $ret; 00030 }
The documentation for this class was generated from the following file:
- contributions/usermanagement/behaviour/commands/base/confirmpasswordusers.cmd.php