blob: 6df87bcec799d7219e0121d0b827027e8b9078c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<?php
class Profile extends TPage {
public function checkPassword($sender, $param) {
$param->IsValid = DbUser::verifyPassword(
$this->Password->Text, $this->User->DbRecord->Password
);
}
public function changePassword($sender, $param) {
$this->SuccessMessage->Visible = FALSE;
if ($this->Page->IsValid) {
$this->User->DbRecord->Password = DbUser::generatePassword(
$this->NewPassword->Text
);
$this->User->DbRecord->save();
$this->SuccessMessage->Visible = TRUE;
}
}
}
?>
|