set V1
This commit is contained in:
@@ -64,6 +64,7 @@ class ProfileController extends AbstractController
|
||||
if ($form->get('newPassword')->getData() !== $form->get('confirmPassword')->getData()) {
|
||||
$this->addFlash('error', "Les mots de passe ne correspondent pas");
|
||||
return $this->render('profile/edit.html.twig', [
|
||||
'profile' => $userConnect,
|
||||
'formProfile' => $form,
|
||||
]);
|
||||
}
|
||||
@@ -74,6 +75,7 @@ class ProfileController extends AbstractController
|
||||
if ($alreadyExists && $alreadyExists !== $profile) {
|
||||
$this->addFlash('error', "Ce pseudo existe déjà");
|
||||
return $this->render('profile/edit.html.twig', [
|
||||
'profile' => $userConnect,
|
||||
'formProfile' => $form,
|
||||
]);
|
||||
}
|
||||
@@ -83,6 +85,7 @@ class ProfileController extends AbstractController
|
||||
if ($alreadyExists && $alreadyExists !== $profile) {
|
||||
$this->addFlash('error', "Cet email existe déjà");
|
||||
return $this->render('profile/edit.html.twig', [
|
||||
'profile' => $userConnect,
|
||||
'formProfile' => $form,
|
||||
]);
|
||||
}
|
||||
@@ -95,6 +98,7 @@ class ProfileController extends AbstractController
|
||||
return $this->redirectToRoute('profile_view',['uuid' => $profile->getIdParticipant()]);
|
||||
}
|
||||
return $this->render('profile/edit.html.twig', [
|
||||
'profile' => $userConnect,
|
||||
'formProfile' => $form,
|
||||
]);
|
||||
} catch(\Exception $e) {
|
||||
|
||||
Reference in New Issue
Block a user