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
8a053bce
Commit
8a053bce
authored
Jul 21, 2020
by
Jozef Vajdiar
Browse files
Update RegistrationController.php
parent
34bb29ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Controller/RegistrationController.php
View file @
8a053bce
...
...
@@ -72,8 +72,8 @@ class RegistrationController extends AbstractController
if
(
$form
->
isValid
())
{
$em
=
$this
->
getDoctrine
()
->
getManager
();
$user
=
$em
->
getRepository
(
Users
::
class
)
->
findOneBy
([
'email'
=>
$user
->
getEmail
()]);
if
(
$user
){
$user
Check
=
$em
->
getRepository
(
Users
::
class
)
->
findOneBy
([
'email'
=>
$user
->
getEmail
()]);
if
(
$user
Check
){
$this
->
addFlash
(
'danger'
,
'Email is already registered!'
);
return
new
RedirectResponse
(
$this
->
generateUrl
(
'fos_user_registration_register'
));
}
...
...
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