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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gabriel Monnerat
erp5
Commits
c0cfadf6
Commit
c0cfadf6
authored
Jul 27, 2011
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fallback if session is not yet initialized.
parent
f303b3ce
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/Person_isLoginBlocked.xml
...kins/erp5_authentication_policy/Person_isLoginBlocked.xml
+2
-1
bt5/erp5_authentication_policy/bt/revision
bt5/erp5_authentication_policy/bt/revision
+1
-1
No files found.
bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/Person_isLoginBlocked.xml
View file @
c0cfadf6
...
@@ -55,6 +55,7 @@
...
@@ -55,6 +55,7 @@
"""\n
"""\n
Return true if user account is blocked.\n
Return true if user account is blocked.\n
"""\n
"""\n
\n
from DateTime import DateTime\n
from DateTime import DateTime\n
\n
\n
request = context.REQUEST\n
request = context.REQUEST\n
...
@@ -71,7 +72,7 @@ key = \'authentication_failure_list\'\n
...
@@ -71,7 +72,7 @@ key = \'authentication_failure_list\'\n
session_id = context.Person_getAuthenticationSessionId()\n
session_id = context.Person_getAuthenticationSessionId()\n
# session might not be initialized yet\n
# session might not be initialized yet\n
session = portal.portal_sessions[session_id]\n
session = portal.portal_sessions[session_id]\n
authentication_failure_list = session
[key]
\n
authentication_failure_list = session
.get(key, [])
\n
\n
\n
check_duration = portal_preferences.getPreferredAuthenticationFailureCheckDuration()\n
check_duration = portal_preferences.getPreferredAuthenticationFailureCheckDuration()\n
block_duration = portal_preferences.getPreferredAuthenticationFailureBlockDuration()\n
block_duration = portal_preferences.getPreferredAuthenticationFailureBlockDuration()\n
...
...
bt5/erp5_authentication_policy/bt/revision
View file @
c0cfadf6
8
9
\ No newline at end of file
\ 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