public function actionLogout()
 {
     //user log
     $userLog = new UserLog();
     $userLog->user_id = Yii::$app->user->identity->getId();
     $userLog->action = UserLog::ACTION_LOGOUT;
     $userLog->date = time();
     $userLog->save(false);
     Yii::$app->user->logout();
     Yii::$app->getSession()->setFlash('info', Module::t('app', 'SECURE_FLASH_LOGOUT_TRUE'));
     return $this->goHome();
 }
 public function actionIndex()
 {
     $model = new ActiveDataProvider(['query' => UserLog::find()]);
     return $this->render('index', ['model' => $model]);
 }