Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Enimo - Vendory
user-bundle
Commits
529e9460
Commit
529e9460
authored
Sep 28, 2020
by
Jozef Vajdiar
Browse files
Update RegistrationController.php
parent
3658da48
Changes
1
Show whitespace changes
Inline
Side-by-side
Controller/RegistrationController.php
View file @
529e9460
...
...
@@ -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
Supports
Markdown
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