Exemplo n.º 1
0
 /** {@inheritDoc} */
 public function initialize()
 {
     /** @var mlmsystem $mlmsystem */
     $this->MlmSystem = $this->modx->getService('mlmsystem');
     $this->MlmSystem->initialize($this->getProperty('context', $this->modx->context->key));
     $this->setProperties(array('passwordnotifymethod' => 's', 'blocked' => false, 'active' => true));
     return parent::initialize();
 }
Exemplo n.º 2
0
 public function initialize()
 {
     $this->setDefaultProperties(array("passwordnotifymethod" => "this", "passwordgenmethod" => "g", "fullname" => ''));
     $this->setProperties(array("use_captcha" => true, 'active' => false, "auto_auth" => false, "groups" => array(array("usergroup" => 11, "role" => 1)), 'email' => mb_convert_case($this->getProperty('email'), MB_CASE_LOWER, 'utf-8'), "createdon" => time()));
     $confirmpassword = $this->getProperty('specifiedpassword');
     $this->setProperty('confirmpassword', $confirmpassword);
     return parent::initialize() && !$this->hasErrors();
 }
Exemplo n.º 3
0
 public function initialize()
 {
     return parent::initialize();
 }