public function behaviors()
 {
     return array('access' => array('class' => AccessControl::className(), 'only' => array('login'), 'rules' => array(array('allow' => true), array('allow' => false, 'denyCallback' => array($this, 'goHome')))), 'eauth' => array('class' => \nodge\eauth\openid\ControllerBehavior::className(), 'only' => array('login')));
 }
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return array('eauth' => array('class' => \nodge\eauth\openid\ControllerBehavior::className(), 'only' => array('login')));
 }
Ejemplo n.º 3
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return ['access' => ['class' => AccessControl::className(), 'only' => ['logout', 'signup'], 'rules' => [['actions' => ['signup'], 'allow' => true, 'roles' => ['?']], ['actions' => ['logout'], 'allow' => true, 'roles' => ['@']]]], 'verbs' => ['class' => VerbFilter::className(), 'actions' => ['logout' => ['post']]], 'eauth' => ['class' => ControllerBehavior::className(), 'only' => ['login']]];
 }
Ejemplo n.º 4
0
 public function behaviors()
 {
     return ['access' => ['class' => AccessControl::className(), 'denyCallback' => function ($rule, $action) {
         $this->redirect(['login']);
     }, 'rules' => [['actions' => ['login', 'view', 'error', 'request-password-reset', 'reset-password', 'signup-auth', 'pos-owner'], 'allow' => true, 'roles' => ['?']], ['actions' => ['logout', 'view', 'pos', 'pos-owner', 'index', 'request-password-reset', 'reset-password'], 'allow' => true, 'roles' => ['@']]]], 'eauth' => ['class' => \nodge\eauth\openid\ControllerBehavior::className(), 'only' => ['login']]];
 }
Ejemplo n.º 5
0
 public function behaviors()
 {
     return array('eauth' => ['class' => \nodge\eauth\openid\ControllerBehavior::className(), 'only' => ['index']], 'access' => ['class' => AccessControl::className(), 'only' => ['index', 'admin', 'logout', 'error'], 'rules' => [['allow' => true, 'actions' => ['index', 'admin'], 'roles' => ['?']], ['allow' => true, 'actions' => ['logout'], 'roles' => ['@']]]]);
 }
Ejemplo n.º 6
0
 public function behaviors()
 {
     return ['access' => ['class' => AccessControl::className(), 'only' => ['logout'], 'rules' => [['actions' => ['login', 'error', 'register'], 'allow' => true], ['actions' => ['logout'], 'allow' => true, 'roles' => ['@']]]], 'verbs' => ['class' => VerbFilter::className(), 'actions' => ['logout' => ['post']]], 'eauth' => ['class' => \nodge\eauth\openid\ControllerBehavior::className(), 'only' => ['login']]];
 }
Ejemplo n.º 7
0
 public function behaviors()
 {
     return ['access' => ['class' => AccessControl::className(), 'only' => ['logout', 'signup'], 'rules' => [['actions' => ['signup'], 'allow' => true, 'roles' => ['?']], ['actions' => ['logout'], 'allow' => true, 'roles' => ['@']]]], 'eauth' => ['class' => \nodge\eauth\openid\ControllerBehavior::className(), 'only' => ['login']]];
 }
Ejemplo n.º 8
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return ['eauth' => ['class' => \nodge\eauth\openid\ControllerBehavior::className(), 'only' => ['login']], 'access' => ['class' => AccessControl::className(), 'rules' => [['actions' => ['index', 'signup', 'login', 'contact', 'request-password-reset', 'reset-password', 'feedback', 'verificate', 'error'], 'allow' => true, 'roles' => ['?']], ['allow' => true, 'roles' => ['@']]]], 'verbs' => ['class' => VerbFilter::className(), 'actions' => []]];
 }