示例#1
0
 /** 
  * Actions to be done after a sign up process
  * 
  * @param \SLUB\Vk2\Domain\Model\User $user
  * @param bool $login Login after creation
  * @return void
  */
 public function afterSignupDo(\SLUB\Vk2\Domain\Model\User $user, $login = TRUE)
 {
     // persist user (otherwise login is not possible if user is still disabled)
     $this->userRepository->update($user);
     $this->persistenceManager->persistAll();
     // login user
     if ($login) {
         $this->loginAfterCreate($user);
     }
     // redirect
     $this->redirect('show', 'Main', NULL);
 }