Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jdev-boarding
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jdev
jdev-boarding
Commits
b97b117c
Commit
b97b117c
authored
Jun 18, 2020
by
Sandrine Sabatié
Browse files
Options
Browse Files
Download
Plain Diff
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
app/src/Action/InscriptionAction.php
app/src/Action/InscriptionAction.php
+3
-3
No files found.
app/src/Action/InscriptionAction.php
View file @
b97b117c
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment