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
Labels
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
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
Show 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):
...
@@ -255,8 +255,8 @@ class PasswordTool(BaseTool):
self
.
_password_request_dict
.
pop
(
key
)
self
.
_password_request_dict
.
pop
(
key
)
def
changeUserPassword
(
self
,
password
,
password_
confirmation
,
def
changeUserPassword
(
self
,
password
,
password_
key
,
password_confirm
=
None
,
password_key
,
user_login
=
None
,
REQUEST
=
None
):
user_login
=
None
,
REQUEST
=
None
,
**
kw
):
"""
"""
Reset the password for a given login
Reset the password for a given login
"""
"""
...
@@ -279,10 +279,6 @@ class PasswordTool(BaseTool):
...
@@ -279,10 +279,6 @@ class PasswordTool(BaseTool):
msg
=
translateString
(
"Bad login provided."
)
msg
=
translateString
(
"Bad login provided."
)
elif
current_date
>
expiration_date
:
elif
current_date
>
expiration_date
:
msg
=
translateString
(
"Date has expire."
)
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
msg
is
not
None
:
if
REQUEST
is
not
None
:
if
REQUEST
is
not
None
:
parameter
=
urlencode
(
dict
(
portal_status_message
=
msg
))
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