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
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
erp5
Commits
1832ca00
Commit
1832ca00
authored
Aug 28, 2023
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Plain Diff
erp5_core: Only search for ERP5 Login
See merge request
!1814
parents
2317230a
8c025549
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
product/ERP5/bootstrap/erp5_core/ToolComponentTemplateItem/portal_components/tool.erp5.PasswordTool.py
...tTemplateItem/portal_components/tool.erp5.PasswordTool.py
+3
-0
No files found.
product/ERP5/bootstrap/erp5_core/ToolComponentTemplateItem/portal_components/tool.erp5.PasswordTool.py
View file @
1832ca00
...
...
@@ -142,6 +142,7 @@ class PasswordTool(BaseTool):
# check user exists, and have an email
user_path_set
=
{
x
[
'path'
]
for
x
in
self
.
getPortalObject
().
acl_users
.
searchUsers
(
login
=
user_login
,
login_portal_type
=
'ERP5 Login'
,
exact_match
=
True
,
)
if
'path'
in
x
}
if
len
(
user_path_set
)
==
0
:
...
...
@@ -253,6 +254,7 @@ class PasswordTool(BaseTool):
return
[]
user_dict_list
=
portal
.
acl_users
.
searchUsers
(
login
=
register_user_login
,
login_portal_type
=
'ERP5 Login'
,
exact_match
=
True
,
)
if
user_dict_list
:
...
...
@@ -300,6 +302,7 @@ class PasswordTool(BaseTool):
portal
=
self
.
getPortalObject
()
user_dict
,
=
portal
.
acl_users
.
searchUsers
(
login
=
register_user_login
,
login_portal_type
=
'ERP5 Login'
,
exact_match
=
True
,
)
login_dict
,
=
user_dict
[
'login_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