Commit 6c73f330 authored by Romain Courteaud's avatar Romain Courteaud

Use getUserByLogin to retreive the users


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27356 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fd21abfc
......@@ -71,7 +71,7 @@ class PasswordTool(BaseTool):
user_login = REQUEST["user_login"]
# check user exists
user_list = self.portal_catalog.unrestrictedSearchResults(portal_type="Person", reference=user_login)
user_list = self.acl_users.erp5_users.getUserByLogin(user_login)
if len(user_list) == 0:
msg = translateString("User ${user} does not exist.",
mapping={'user':user_login})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment