Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
erp5
Commits
c9b43e4b
Commit
c9b43e4b
authored
Mar 16, 2020
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
authentication_policy: fix pylint messages and enable coding style test
parent
2f143d52
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1 addition
and
6 deletions
+1
-6
bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/Login_analyzePassword.xml
...kins/erp5_authentication_policy/Login_analyzePassword.xml
+1
-1
bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/Login_notifyLoginFailure.py
...ns/erp5_authentication_policy/Login_notifyLoginFailure.py
+0
-1
bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/Login_unblockLogin.py
...al_skins/erp5_authentication_policy/Login_unblockLogin.py
+0
-2
bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/SystemEventModule_expireAuthenticationEventList.py
...policy/SystemEventModule_expireAuthenticationEventList.py
+0
-1
bt5/erp5_authentication_policy/bt/skip_coding_style_test
bt5/erp5_authentication_policy/bt/skip_coding_style_test
+0
-1
No files found.
bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/Login_analyzePassword.xml
View file @
c9b43e4b
...
...
@@ -50,7 +50,7 @@
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
password, request=
{}
</string>
</value>
<value>
<string>
password, request=
None
</string>
</value>
</item>
<item>
<key>
<string>
_proxy_roles
</string>
</key>
...
...
bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/Login_notifyLoginFailure.py
View file @
c9b43e4b
"""
File a failed authentication attempt.
"""
from
DateTime
import
DateTime
portal
=
context
.
getPortalObject
()
portal_preferences
=
portal
.
portal_preferences
...
...
bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/Login_unblockLogin.py
View file @
c9b43e4b
...
...
@@ -10,8 +10,6 @@ if not portal.portal_preferences.isAuthenticationPolicyEnabled():
now
=
DateTime
()
one_second
=
1
/
24.0
/
60.0
/
60.0
check_duration
=
portal_preferences
.
getPreferredAuthenticationFailureCheckDuration
()
block_duration
=
portal_preferences
.
getPreferredAuthenticationFailureBlockDuration
()
max_authentication_failures
=
portal_preferences
.
getPreferredMaxAuthenticationFailure
()
check_time
=
now
-
check_duration
*
one_second
# acknowledge last authentication events for user
...
...
bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/SystemEventModule_expireAuthenticationEventList.py
View file @
c9b43e4b
...
...
@@ -3,7 +3,6 @@
"""
from
DateTime
import
DateTime
from
Products.ZSQLCatalog.SQLCatalog
import
Query
from
Products.ERP5Type.Document
import
newTempBase
portal
=
context
.
getPortalObject
()
portal_preferences
=
portal
.
portal_preferences
...
...
bt5/erp5_authentication_policy/bt/skip_coding_style_test
deleted
100644 → 0
View file @
2f143d52
1
\ No newline at end of file
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