| @@ 23-30 (lines=8) @@ | ||
| 20 | */ |
|
| 21 | public $passwordAttribute = 'current_password'; |
|
| 22 | ||
| 23 | public function init() |
|
| 24 | { |
|
| 25 | parent::init(); |
|
| 26 | if ($this->message !== null) { |
|
| 27 | return; |
|
| 28 | } |
|
| 29 | $this->message = Yii::t('hiam', 'Incorrect login'); |
|
| 30 | } |
|
| 31 | ||
| 32 | /** |
|
| 33 | * {@inheritdoc} |
|
| @@ 23-30 (lines=8) @@ | ||
| 20 | */ |
|
| 21 | public $passwordAttribute = 'current_password'; |
|
| 22 | ||
| 23 | public function init() |
|
| 24 | { |
|
| 25 | parent::init(); |
|
| 26 | if ($this->message !== null) { |
|
| 27 | return; |
|
| 28 | } |
|
| 29 | $this->message = Yii::t('hiam', 'The current password is incorrect'); |
|
| 30 | } |
|
| 31 | ||
| 32 | /** |
|
| 33 | * {@inheritdoc} |
|