/**
* 修改密码
*
* @return array
*/
public function actionPassword()
{
$model = new ChangePasswordForm();
if ($model->load(Yii::$app->request->post(), '') && $model->change()) {
return ['status' => 'success', 'data' => []];
} else {
return ['status' => 'fail', 'data' => ['errors' => $model->getFirstErrors()]];
}
}