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
Frederic Thoma
erp5
Commits
af8ffba2
Commit
af8ffba2
authored
Sep 02, 2011
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uptate to follow new naming of field
remove check which are done by the form
parent
6b277281
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
product/ERP5/Tool/PasswordTool.py
product/ERP5/Tool/PasswordTool.py
+2
-6
No files found.
product/ERP5/Tool/PasswordTool.py
View file @
af8ffba2
...
...
@@ -255,8 +255,8 @@ class PasswordTool(BaseTool):
self
.
_password_request_dict
.
pop
(
key
)
def
changeUserPassword
(
self
,
password
,
password_
confirmation
,
password_key
,
user_login
=
None
,
REQUEST
=
None
):
def
changeUserPassword
(
self
,
password
,
password_
key
,
password_confirm
=
None
,
user_login
=
None
,
REQUEST
=
None
,
**
kw
):
"""
Reset the password for a given login
"""
...
...
@@ -279,10 +279,6 @@ class PasswordTool(BaseTool):
msg
=
translateString
(
"Bad login provided."
)
elif
current_date
>
expiration_date
:
msg
=
translateString
(
"Date has expire."
)
elif
not
password
:
msg
=
translateString
(
"Password must be entered."
)
elif
password
!=
password_confirmation
:
msg
=
translateString
(
"Passwords do not match."
)
if
msg
is
not
None
:
if
REQUEST
is
not
None
:
parameter
=
urlencode
(
dict
(
portal_status_message
=
msg
))
...
...
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