@@ -55,16 +55,16 @@ |
||
| 55 | 55 | ], parent::attributeLabels()); |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | - /** |
|
| 59 | - * update user password when new password not blank. |
|
| 60 | - * |
|
| 61 | - */ |
|
| 58 | + /** |
|
| 59 | + * update user password when new password not blank. |
|
| 60 | + * |
|
| 61 | + */ |
|
| 62 | 62 | |
| 63 | 63 | public function beforeSave($insert) |
| 64 | 64 | { |
| 65 | 65 | if (parent::beforeSave($insert)) { |
| 66 | 66 | if (!$this->isNewRecord && $this->password != '') { |
| 67 | - $this->setPassword($this->password); |
|
| 67 | + $this->setPassword($this->password); |
|
| 68 | 68 | } |
| 69 | 69 | return true; |
| 70 | 70 | } else { |