getControlState('user'); } public function setUserToChange(DbUser $user) { if ($user->IsGuest && !$this->Page->IsCallBack) { throw new TInvalidDataValueException( 'Password change impossible for guest user' ); } $this->setControlState('user', $user); } public function checkPassword($sender, $param) { $param->IsValid = $this->getFacade()->verifyUserPassword( $this->Password->Text, $this->UserToChange ); } public function changePassword($sender, $param) { $this->SuccessMessage->Visible = FALSE; if ($this->Page->IsValid) { $this->getFacade()->changePassword( $this->UserToChange, $this->NewPassword->Text ); $this->SuccessMessage->Visible = TRUE; } } } ?>