1 | <?php |
||
12 | class ResetPasswordForm extends Model |
||
13 | { |
||
14 | public $password; |
||
15 | |||
16 | /** |
||
17 | * @var User2 |
||
18 | */ |
||
19 | private $_user; |
||
20 | |||
21 | /** |
||
22 | * Creates a form model given a token. |
||
23 | * |
||
24 | * @param string $token |
||
25 | * @param array $config name-value pairs that will be used to initialize the object properties |
||
26 | * |
||
27 | * @throws InvalidParamException if token is empty or not valid |
||
28 | */ |
||
29 | public function __construct($token, $config = []) |
||
41 | |||
42 | /** |
||
43 | * @inheritdoc |
||
44 | */ |
||
45 | public function rules() |
||
52 | |||
53 | /** |
||
54 | * Resets password. |
||
55 | * |
||
56 | * @return bool if password was reset |
||
57 | */ |
||
58 | public function resetPassword() |
||
66 | } |
||
67 |