public function recordLogin($config = [])
    {
        if (empty($this->loginLogClass)) {
            return false;
        }
        $log = $this->create($this->loginLogClass, $config);
        try {
            return $log->save();
        } catch (\Exception $ex) {
            Yii::error($ex->getMessage(), __METHOD__);
        }
    }