/**
  **显示重设密码的表单(get),重新设置登陆密码(post).
  * @return string whether or not the password has been reset successfully
  */
 public function actionResetPassword()
 {
     if (Yii::$app->request->isGet) {
         $csrf = Yii::$app->request->csrfToken;
         return $this->render('reset-password', ['csrf' => $csrf]);
     }
     $model = new ResetPasswordForm();
     if ($model->load(Yii::$app->request->post(), '') && $model->reset()) {
         AjaxResponse::success();
     }
     AjaxResponse::fail(null, $model->errors);
 }
 /**
  **针对某一事件,向该事件中最晚时间节点周围一定半径区域内的手机讯号发送短信,半径大小由事件紧急程度决定,紧急程度越高半径越大,其中关于某个事件只能向某个手机号码发送一次短信.
  */
 public function actionSendMessage()
 {
     $sendMessageForm = new SendMessageForm();
     if ($sendMessageForm->load(Yii::$app->request->post(), '') && $sendMessageForm->save()) {
         AjaxResponse::success();
     }
     AjaxResponse::fail(null, $sendMessageForm->errors);
 }