diff options
Diffstat (limited to 'app/php/components/PasswordChange.php')
-rw-r--r-- | app/php/components/PasswordChange.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/php/components/PasswordChange.php b/app/php/components/PasswordChange.php index 1224f33..9f2ac7f 100644 --- a/app/php/components/PasswordChange.php +++ b/app/php/components/PasswordChange.php @@ -19,17 +19,16 @@ class PasswordChange extends TTemplateControl { public function checkPassword($sender, $param) { $param->IsValid = DbUser::verifyPassword( - $this->Password->Text, $this->UserToChange->DbRecord->Password + $this->Password->Text, $this->UserToChange->getPassword() ); } public function changePassword($sender, $param) { $this->SuccessMessage->Visible = FALSE; if ($this->Page->IsValid) { - $this->UserToChange->DbRecord->Password = DbUser::generatePassword( + $this->UserToChange->changePassword( $this->NewPassword->Text ); - $this->UserToChange->DbRecord->save(); $this->SuccessMessage->Visible = TRUE; } } |