Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eduGAIN Access Check - Account manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
edugain
eduGAIN Access Check - Account manager
Commits
5de664d8
Commit
5de664d8
authored
3 years ago
by
Guillaume ROUSSE
Browse files
Options
Downloads
Patches
Plain Diff
email parameter validation
parent
1922265a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/AccountManager/App/Step3.pm
+10
-0
10 additions, 0 deletions
lib/AccountManager/App/Step3.pm
with
10 additions
and
0 deletions
lib/AccountManager/App/Step3.pm
+
10
−
0
View file @
5de664d8
...
...
@@ -35,6 +35,16 @@ sub run {
my
$sp
=
$self
->
get_sp
(
entityid
=>
$entityid
);
return
if
!
$sp
;
return
$self
->
abort
(
log_message
=>
"
Missing parameter: email
",
user_message
=>
"
missing_email
"
)
if
!
$email
;
return
$self
->
abort
(
log_message
=>
"
Invalid parameter: email
",
user_message
=>
"
invalid_email
"
)
if
$email
!~
/^ [\w\-.+]+ @ [\w\-.+]+ $/x
;
# override metadata contacts if needed
$self
->
mock_contacts
(
$sp
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment