| 1 | <?php |
||
| 21 | class ResetPasswordForm extends Model |
||
| 22 | { |
||
| 23 | public $password; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var User |
||
| 27 | */ |
||
| 28 | private $_user; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Creates a form model given a token. |
||
| 32 | * |
||
| 33 | * @param string $token |
||
| 34 | * @param array $config name-value pairs that will be used to initialize the object properties |
||
| 35 | * @throws \yii\base\InvalidParamException if token is empty or not valid |
||
| 36 | */ |
||
| 37 | public function __construct($token, $config = []) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * {@inheritdoc} |
||
| 51 | */ |
||
| 52 | public function rules() |
||
| 59 | |||
| 60 | /** |
||
| 61 | * Resets password. |
||
| 62 | * |
||
| 63 | * @return boolean if password was reset. |
||
| 64 | */ |
||
| 65 | public function resetPassword() |
||
| 73 | } |
||
| 74 |