Example #1
0
 /**
  * @inheritdoc
  */
 public function actions()
 {
     $actions = [];
     if ($this->getConfig('socialSettings', 'enabled', false)) {
         $actions['auth'] = ['class' => AuthAction::classname(), 'successCallback' => [$this, 'onAuthSuccess']];
     }
     $captcha = $this->getConfig('registrationSettings', 'captcha', false);
     if ($captcha !== false) {
         $captcha = ArrayHelper::getValue($captcha, 'action', []);
         $actions['captcha'] = $captcha;
     }
     return $actions;
 }