Commit 9d2a43f4 authored by  Sandrine Sabatié's avatar Sandrine Sabatié
Browse files

Replace InscriptionAction.php

parent 21942be3
...@@ -247,7 +247,7 @@ final class InscriptionAction ...@@ -247,7 +247,7 @@ final class InscriptionAction
{ {
switch ($parsedBody['role']) { switch ($parsedBody['role']) {
case 'Participant': case 'Participant':
case 'Accompagnant': case 'Individuel':
case 'Organisateur': case 'Organisateur':
case 'Invité': case 'Invité':
case 'Exposant': case 'Exposant':
...@@ -291,7 +291,7 @@ final class InscriptionAction ...@@ -291,7 +291,7 @@ final class InscriptionAction
case 'PASS COMPLET': case 'PASS COMPLET':
case 'PASS SOUTIEN': case 'PASS SOUTIEN':
case 'PASS LIBRE': case 'PASS LIBRE':
case 'PASS ACCOMPAGNANT': case 'PASS INDIVIDUEL':
case 'PASS ORGA': case 'PASS ORGA':
case 'PASS INVITE': case 'PASS INVITE':
case 'PASS SPONSOR': case 'PASS SPONSOR':
...@@ -347,7 +347,7 @@ final class InscriptionAction ...@@ -347,7 +347,7 @@ final class InscriptionAction
$participant->setDateInscription(new \DateTime("now")); $participant->setDateInscription(new \DateTime("now"));
$participant->setCleEmail(uniqid('', true)); // Clé activation pour verification email $participant->setCleEmail(uniqid('', true)); // Clé activation pour verification email
$participant->setEmailValide(false); // Attente URL activation $participant->setEmailValide(false); // Attente URL activation
if ($parsedBody['role'] == 'Participant' || $parsedBody['role'] == 'Accompagnant') { if ($parsedBody['role'] == 'Participant' || $parsedBody['role'] == 'Individuel') {
$participant->setCloValide(true); // True si participant ou accompagnant $participant->setCloValide(true); // True si participant ou accompagnant
} else { } else {
$participant->setCloValide(false); // False sinon; Besoin d'une activation d'un admin $participant->setCloValide(false); // False sinon; Besoin d'une activation d'un admin
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment