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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Rafael Monnerat
erp5
Commits
bd604868
Commit
bd604868
authored
Jun 06, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! credentials: only take into account persons with reference when looking up login from email
parent
60aec91d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_getRelatedCredentialQuestionDialog.xml
...redential/ERP5Site_getRelatedCredentialQuestionDialog.xml
+1
-1
bt5/erp5_credential/bt/revision
bt5/erp5_credential/bt/revision
+1
-1
No files found.
bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_getRelatedCredentialQuestionDialog.xml
View file @
bd604868
...
@@ -97,7 +97,7 @@ elif choice == "username":\n
...
@@ -97,7 +97,7 @@ elif choice == "username":\n
query_kw = {"email.url_string" : default_email_text}\n
query_kw = {"email.url_string" : default_email_text}\n
result = portal.portal_catalog(portal_type="Email", parent_portal_type="Person", **query_kw)\n
result = portal.portal_catalog(portal_type="Email", parent_portal_type="Person", **query_kw)\n
person_list = [x.getParentValue() for x in result]\n
person_list = [x.getParentValue() for x in result]\n
person_list = [x for x in
resul
t if x.getReference()] # only consider persons with a valid login\n
person_list = [x for x in
person_lis
t if x.getReference()] # only consider persons with a valid login\n
if len(person_list) == 0:\n
if len(person_list) == 0:\n
portal_status_message = context.Base_translateString("Could not find your user account.")\n
portal_status_message = context.Base_translateString("Could not find your user account.")\n
if web_site:\n
if web_site:\n
...
...
bt5/erp5_credential/bt/revision
View file @
bd604868
434
435
\ 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