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
Labels
Merge Requests
138
Merge Requests
138
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
a97402d3
Commit
a97402d3
authored
Dec 17, 2015
by
Aurel
3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
authentication : do not use countMessage to prevent race condition
parent
ab3ae636
Changes
1
Show 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
...
...
Jérome Perrin
@jerome
mentioned in commit
814b8cff
·
Jan 10, 2017
mentioned in commit
814b8cff
mentioned in commit 814b8cff84fe2336f695f246387c953449214cfc
Toggle commit list
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