This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @var string | |
| * | |
| * @ORM\Column(name="username", type="string", length=100, nullable=false) | |
| * @Annotation\Filter({"name":"StringTrim"}) | |
| * @Annotation\Validator({"name":"StringLength", "options":{"min":1, "max":30}}) | |
| * @Annotation\Validator({"name":"Regex", "options":{"pattern":"/^[a-zA-Z][a-zA-Z0-9_-]{0,24}$/"}}) | |
| * @Annotation\Attributes({"type":"text"}) | |
| * @Annotation\Options({"label":"Username:"}) | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @var integer | |
| * | |
| * @ORM\Column(name="id", type="integer") | |
| * @ORM\Id | |
| * @ORM\GeneratedValue(strategy="IDENTITY") | |
| * @Annotation\Exclude() | |
| */ | |
| protected $id; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use Doctrine\ORM\Mapping as ORM; | |
| use Doctrine\Common\Collections\ArrayCollection; | |
| use Doctrine\Common\Collections\Collection; | |
| use Zend\Form\Annotation; | |
| /** | |
| * Default implementation of User | |
| * | |
| * @ORM\Table(name="user") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $this->add(array( | |
| 'name' => 'passwordConfirm', | |
| 'required' => true, | |
| 'filters' => array( | |
| array('name' => 'StripTags'), | |
| array('name' => 'StringTrim'), | |
| ), | |
| 'validators' => array( | |
| array( | |
| 'name' => 'StringLength', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $this->add(array( | |
| 'name' => 'email', | |
| 'required' => true, | |
| 'validators' => array( | |
| array( | |
| 'name' => 'EmailAddress' | |
| ), | |
| array( | |
| 'name' => 'DoctrineModule\Validator\NoObjectExists', | |
| 'options' => array( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $this->add(array( | |
| 'name' => 'usernameOrEmail', | |
| 'required' => true, | |
| 'filters' => array( | |
| array('name' => 'StripTags'), | |
| array('name' => 'StringTrim'), | |
| ), | |
| 'validators' => array( | |
| array( | |
| 'name' => 'StringLength', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $this->add(array( | |
| 'type' => 'Zend\Form\Element\Captcha', | |
| 'name' => 'captcha', | |
| 'attributes' => array( | |
| 'placeholder' =>'Please verify you are human', | |
| ), | |
| 'options' => array( | |
| 'label' => ' ', | |
| 'captcha' => new \Zend\Captcha\Figlet(array( | |
| 'wordLen' => 3, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $this->add(array( | |
| 'name' => 'submit', | |
| 'attributes' => array( | |
| 'type' => 'submit', | |
| 'value' => 'Log in', | |
| 'class' => 'btn btn-success btn-lg', | |
| ), | |
| )); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $this->add(array( | |
| 'name' => 'rememberme', | |
| 'type' => 'checkbox', | |
| 'options' => array( | |
| 'label' => 'Remember me?', | |
| 'label_attributes' => array( | |
| 'class' => 'checkbox' | |
| ), | |
| ), | |
| )); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //textfield | |
| $this->add(array( | |
| 'name' => 'usernameOrEmail', | |
| 'attributes' => array( | |
| 'type' => 'text', | |
| 'placeholder' =>'Username or email', | |
| ), | |
| 'options' => array( | |
| 'label' => ' ', |
NewerOlder