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
Alain Takoudjou
erp5
Commits
518aa0a1
Commit
518aa0a1
authored
11 years ago
by
Vincent Pelletier
Browse files
Options
Download
Email Patches
Plain Diff
Simplify method.
parent
1a0c3d3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
product/ERP5/Tool/PasswordTool.py
product/ERP5/Tool/PasswordTool.py
+4
-4
No files found.
product/ERP5/Tool/PasswordTool.py
View file @
518aa0a1
...
...
@@ -253,15 +253,15 @@ class PasswordTool(BaseTool):
return
self
.
reset_password_form
(
REQUEST
=
REQUEST
)
def
removeExpiredRequests
(
self
,
**
kw
):
def
removeExpiredRequests
(
self
):
"""
Browse dict and remove expired request
"""
current_date
=
DateTime
()
for
key
,
(
login
,
date
)
in
self
.
_password_request_dict
.
items
():
password_request_dict
=
self
.
_password_request_dict
for
key
,
(
_
,
date
)
in
password_request_dict
.
items
():
if
date
<
current_date
:
self
.
_password_request_dict
.
pop
(
key
)
del
password_request_dict
[
key
]
def
changeUserPassword
(
self
,
password
,
password_key
,
password_confirm
=
None
,
user_login
=
None
,
REQUEST
=
None
,
**
kw
):
...
...
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