示例#1
0
 public function init()
 {
     $module = null;
     Module::validateConfig($module);
     $this->_settings = $module->loginSettings;
     parent::init();
 }
示例#2
0
 public function init()
 {
     if (!isset($this->resetLinkOptions['title'])) {
         $this->resetLinkOptions['title'] = Yii::t('user', 'Click here to reset your lost password.');
     }
     Module::validateConfig($this->_module);
     $this->attributes += ['username' => ['type' => Form::INPUT_TEXT], 'password' => ['type' => Form::INPUT_PASSWORD], 'rememberMe' => ['type' => Form::INPUT_CHECKBOX]];
     $resetLink = Html::a(Yii::t('user', 'Forgot password?'), Url::to($this->_module->actionSettings[Module::ACTION_RECOVERY]), $this->resetLinkOptions);
     if (!isset($this->buttons)) {
         $this->buttons = $resetLink . '  {submit}';
     }
     $this->submitButtonOptions += ['label' => Yii::t('user', 'Login'), 'icon' => 'log-in', 'class' => 'btn btn-primary'];
     parent::init();
 }
示例#3
0
 /**
  * Initialize the model for the user module
  */
 public function init()
 {
     Module::validateConfig($this->_module);
     parent::init();
 }