Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
erp5
Commits
518aa0a1
Commit
518aa0a1
authored
Jun 17, 2013
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify method.
parent
1a0c3d3d
Changes
1
Show 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
):
...
...
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