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
lemonldap-ng
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xavier Bachelot
lemonldap-ng
Commits
59550d3a
Commit
59550d3a
authored
Aug 31, 2018
by
Christophe Maudoux
🐛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve CSRF token test
parent
338abbbc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Conf/Tests.pm
lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Conf/Tests.pm
+2
-2
No files found.
lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Conf/Tests.pm
View file @
59550d3a
...
...
@@ -529,8 +529,8 @@ sub tests {
# Warn if XSRF token TTL is higher than 10s
formTimeout
=>
sub
{
return
1
unless
(
defined
$conf
->
{
formTimeout
}
);
return
(
0
,
"
XSRF form token TTL must be higher than
1
0s
"
)
unless
(
$conf
->
{
formTimeout
}
>
1
0
);
return
(
0
,
"
XSRF form token TTL must be higher than
3
0s
"
)
unless
(
$conf
->
{
formTimeout
}
>
3
0
);
return
(
1
,
"
XSRF form token TTL should not be higher than 2mn
"
)
if
(
$conf
->
{
formTimeout
}
>
120
);
...
...
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