Test change password with flash message
This commit is contained in:
@@ -15,4 +15,12 @@ class ProfileController extends AbstractController
|
||||
'controller_name' => 'ProfileController',
|
||||
]);
|
||||
}
|
||||
|
||||
#[Route('/changepasswd', name: 'app_change_passwd')]
|
||||
public function changePassword(): Response
|
||||
{
|
||||
$this->addFlash('notice', 'Password successfully updated');
|
||||
|
||||
return $this->redirectToRoute('app_profile');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user