mirror of
https://forge.chapril.org/tykayn/osm-commerces
synced 2025-06-20 01:44:42 +02:00
enable map
This commit is contained in:
parent
f69b7824af
commit
89467285da
7 changed files with 82 additions and 24 deletions
|
@ -234,6 +234,25 @@ class PublicController extends AbstractController
|
|||
#[Route('/request_email_to_modify/{osm_object_id}', name: 'app_public_request_email')]
|
||||
public function request_email($osm_object_id): Response
|
||||
{
|
||||
if ($this->getRequest()->isMethod('POST')) {
|
||||
$email = $this->getRequest()->request->get('email');
|
||||
|
||||
try {
|
||||
// TODO: Implémenter l'envoi réel du mail
|
||||
|
||||
$this->addFlash(
|
||||
'success',
|
||||
'Un email vous a été envoyé avec les instructions pour modifier ce lieu.'
|
||||
);
|
||||
} catch (\Exception $e) {
|
||||
$this->addFlash(
|
||||
'error',
|
||||
'Une erreur est survenue lors de l\'envoi de l\'email. Veuillez réessayer plus tard.'
|
||||
);
|
||||
}
|
||||
|
||||
return $this->redirectToRoute('app_public_index');
|
||||
}
|
||||
// TODO envoyer un email
|
||||
return $this->render('public/request_email.html.twig', [
|
||||
'controller_name' => 'PublicController',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue