コード例 #1
0
 protected function validate()
 {
     parent::validate();
     $this->_name = $this->name->orEmpty();
     if (Users::checkEmailConstraint($this->_email)) {
         throw new ValidatorException("User with this email already registered");
     }
 }
コード例 #2
0
ファイル: DoSignUp.php プロジェクト: pldin601/HomeMusic
 public function doPost(JsonResponse $response, RegistrationForm $form)
 {
     Users::create($form);
 }