Beispiel #1
0
 public function processRegistration(Nette\Application\UI\Form $form)
 {
     $values = $form->getValues();
     $existingUser = $this->userModel->getByEmail($values->email);
     if ($existingUser) {
         $this->flashMessage('Email allready exists');
         $this->redirect(':Front:Register:default');
     }
     $this->registerService->createUser($values);
     $this->redirect(':Front:Login:default');
 }
 public function processRegisterMultihunter(Nette\Application\UI\Form $form)
 {
     $this->registerService->createMultihunter($form->getValues());
     $this->redirect(':Install:Oasis:default');
 }