We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29b8785 commit 35b4c58Copy full SHA for 35b4c58
src/Controller/ProfileController.php
@@ -219,7 +219,7 @@ public function deleteProfileNotLoggedIn(
219
if ($deleteProfileForm->isSubmitted() && $deleteProfileForm->isValid()) {
220
$data = $deleteProfileForm->getData();
221
$memberRepository = $this->entityManager->getRepository(Member::class);
222
- $member = $memberRepository->find($data['username']);
+ $member = $memberRepository->findOneBy(['username' => $data['username']]);
223
224
$verified = false;
225
if (null === $member) {
@@ -239,7 +239,7 @@ public function deleteProfileNotLoggedIn(
239
}
240
241
if ($success) {
242
- return $this->redirectToRoute('/logout');
+ return $this->redirectToRoute('security_logout');
243
244
245
0 commit comments