Commit b97b117c authored by  Sandrine Sabatié's avatar Sandrine Sabatié
Browse files

Merge branch 'ssabatie' into 'develop'

Replace InscriptionAction.php

See merge request !24
parents e5ac772a 9d2a43f4
Pipeline #2660 passed with stages
in 1 minute and 46 seconds
......@@ -247,7 +247,7 @@ final class InscriptionAction
{
switch ($parsedBody['role']) {
case 'Participant':
case 'Accompagnant':
case 'Individuel':
case 'Organisateur':
case 'Invité':
case 'Exposant':
......@@ -291,7 +291,7 @@ final class InscriptionAction
case 'PASS COMPLET':
case 'PASS SOUTIEN':
case 'PASS LIBRE':
case 'PASS ACCOMPAGNANT':
case 'PASS INDIVIDUEL':
case 'PASS ORGA':
case 'PASS INVITE':
case 'PASS SPONSOR':
......@@ -347,7 +347,7 @@ final class InscriptionAction
$participant->setDateInscription(new \DateTime("now"));
$participant->setCleEmail(uniqid('', true)); // Clé activation pour verification email
$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
} else {
$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