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
preetwinder
erp5
Commits
a97402d3
Commit
a97402d3
authored
Dec 17, 2015
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
authentication : do not use countMessage to prevent race condition
parent
ab3ae636
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/Person_notifyPasswordExpire.xml
...rp5_authentication_policy/Person_notifyPasswordExpire.xml
+3
-5
No files found.
bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/Person_notifyPasswordExpire.xml
View file @
a97402d3
...
...
@@ -67,11 +67,6 @@ if not portal_preferences.isAuthenticationPolicyEnabled() or \\\n
# no policy, no sense to file expire at all or symply system do not configured to\n
return 0\n
\n
# Prevent creating 10 recoveries when browser access all HTML, CSS, JS files in parallel\n
tag = "%s_passwd_recovery_inProgress" % context.getUid()\n
if (portal.portal_activities.countMessageWithTag(tag) >
0):\n
return 0\n
\n
# Prevent creating new recovery if one was recently created\n
recovery_list = portal.portal_catalog(\n
portal_type="Credential Recovery",\n
...
...
@@ -89,6 +84,9 @@ credential_recovery = module.newContent(\n
destination_decision_value=context,\n
language=portal.Localizer.get_selected_language(),\n
activate_kw={\'tag\': tag})\n
# immediate reindex allowed because it is a new object\n
credential_recovery.immediateReindexObject()\n
context.serialize()\n
credential_recovery.submit()\n
...
...
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