Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Enimo - Vendory
user-bundle
Commits
3658da48
Commit
3658da48
authored
Sep 28, 2020
by
Jozef Vajdiar
Browse files
Update RegistrationController.php
parent
d40bdcda
Changes
1
Hide whitespace changes
Inline
Side-by-side
Controller/RegistrationController.php
View file @
3658da48
...
...
@@ -71,14 +71,14 @@ class RegistrationController extends AbstractController
if
(
$form
->
isSubmitted
())
{
if
(
$form
->
isValid
())
{
/* TODO: REVI
$em = $this->getDoctrine()->getManager();
$userCheck = $em->getRepository(Users::class)->findOneBy(['email'=>$user->getEmail()]);
if ($userCheck){
$this->addFlash('danger','Email is already registered!');
return new RedirectResponse($this->generateUrl('fos_user_registration_register'));
}
*/
$event
=
new
FormEvent
(
$form
,
$request
);
$this
->
eventDispatcher
->
dispatch
(
$event
,
FOSUserEvents
::
REGISTRATION_SUCCESS
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment