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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Hardik Juneja
erp5
Commits
d4135cf5
Commit
d4135cf5
authored
Apr 26, 2016
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PasswordTool: rename getExpirationDateForKey to _getExpirationDateForKey
/reviewed-on
nexedi/erp5!103
parent
c4f98af2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
product/ERP5/Tool/PasswordTool.py
product/ERP5/Tool/PasswordTool.py
+2
-3
No files found.
product/ERP5/Tool/PasswordTool.py
View file @
d4135cf5
...
@@ -106,8 +106,7 @@ class PasswordTool(BaseTool):
...
@@ -106,8 +106,7 @@ class PasswordTool(BaseTool):
url
=
"%s?%s"
%
(
base_url
,
parameter
)
url
=
"%s?%s"
%
(
base_url
,
parameter
)
return
url
return
url
security
.
declareProtected
(
'Manage users'
,
'getResetPasswordUrl'
)
def
_getExpirationDateForKey
(
self
,
key
=
None
):
def
getExpirationDateForKey
(
self
,
key
=
None
):
return
self
.
_password_request_dict
[
key
][
1
]
return
self
.
_password_request_dict
[
key
][
1
]
security
.
declarePublic
(
'mailPasswordResetRequest'
)
security
.
declarePublic
(
'mailPasswordResetRequest'
)
...
@@ -168,7 +167,7 @@ class PasswordTool(BaseTool):
...
@@ -168,7 +167,7 @@ class PasswordTool(BaseTool):
# send mail
# send mail
message_dict
=
{
'instance_name'
:
self
.
getPortalObject
().
getTitle
(),
message_dict
=
{
'instance_name'
:
self
.
getPortalObject
().
getTitle
(),
'reset_password_link'
:
url
,
'reset_password_link'
:
url
,
'expiration_date'
:
self
.
getExpirationDateForKey
(
key
)}
'expiration_date'
:
self
.
_
getExpirationDateForKey
(
key
)}
if
substitution_method_parameter_dict
is
not
None
:
if
substitution_method_parameter_dict
is
not
None
:
message_dict
.
update
(
substitution_method_parameter_dict
)
message_dict
.
update
(
substitution_method_parameter_dict
)
...
...
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