Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Tristan Cavelier
erp5
Commits
bcf9a10b
Commit
bcf9a10b
authored
10 years ago
by
Jérome Perrin
Browse files
Options
Download
Email Patches
Plain Diff
erp5_credential: search login with exact match
parent
0d9a9314
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 @
bcf9a10b
...
@@ -60,7 +60,7 @@ if choice == "password":\n
...
@@ -60,7 +60,7 @@ if choice == "password":\n
request = context.REQUEST\n
request = context.REQUEST\n
request.set(\'reference\', reference)\n
request.set(\'reference\', reference)\n
portal_preferences = context.portal_preferences\n
portal_preferences = context.portal_preferences\n
result = person_module.searchFolder(reference=
reference
)\n
result = person_module.searchFolder(reference=
{\'query\': reference, \'key\': \'ExactMatch\'}
)\n
if len(result) != 1:\n
if len(result) != 1:\n
portal_status_message = context.Base_translateString("Can\'t find corresponding person, it\'s not possible to update your credentials.")\n
portal_status_message = context.Base_translateString("Can\'t find corresponding person, it\'s not possible to update your credentials.")\n
return context.Base_redirect(\'login_form\', keep_items = dict(portal_status_message=portal_status_message ))\n
return context.Base_redirect(\'login_form\', keep_items = dict(portal_status_message=portal_status_message ))\n
...
...
This diff is collapsed.
Click to expand it.
bt5/erp5_credential/bt/revision
View file @
bcf9a10b
430
431
\ No newline at end of file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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