コード例 #1
0
ファイル: UserTest.php プロジェクト: uthando-cms/uthando-user
 public function testIncludePasswordOption()
 {
     $form = new User(null, ['include_password' => true]);
     $form->getFormFactory()->setFormElementManager($this->serviceManager->get('FormElementManager'));
     $form->init();
     $this->assertTrue($form->has('show-password'));
     $this->assertTrue($form->has('passwd'));
     $this->assertTrue($form->has('passwd-confirm'));
 }
コード例 #2
0
ファイル: Register.php プロジェクト: butkimtinh/uthando-user
 public function init()
 {
     parent::init();
     $this->remove('userId')->remove('role')->remove('dateCreated')->remove('dateModified')->remove('active');
 }