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
d0c605ac
Commit
d0c605ac
authored
Sep 02, 2011
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make sure only one email if send in case of recovery for multiple
account fix also parameter name for password tool
parent
8264d29d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
product/ERP5/tests/testERP5Credential.py
product/ERP5/tests/testERP5Credential.py
+5
-2
No files found.
product/ERP5/tests/testERP5Credential.py
View file @
d0c605ac
...
...
@@ -722,8 +722,11 @@ class TestERP5Credential(ERP5TypeTestCase):
'''
person_list
=
sequence
.
get
(
'person_list'
)
email
=
sequence
.
get
(
'default_email_text'
)
# after accept, an email is send containing the reset link
# after accept, only one email is send containing the reset link
previous_message
=
self
.
portal
.
MailHost
.
_previous_message
last_message
=
self
.
portal
.
MailHost
.
_last_message
if
len
(
previous_message
):
self
.
assertNotEqual
(
previous_message
[
2
],
last_message
[
2
])
decoded_message
=
self
.
decode_email
(
last_message
[
2
])
body_message
=
decoded_message
[
'body'
]
...
...
@@ -766,7 +769,7 @@ class TestERP5Credential(ERP5TypeTestCase):
self
.
_assertUserExists
(
'barney'
,
'secret'
)
self
.
portal
.
portal_password
.
changeUserPassword
(
user_login
=
"barney"
,
password
=
"new_password"
,
password_confirm
ation
=
"new_password"
,
password_confirm
=
"new_password"
,
password_key
=
key
)
transaction
.
commit
()
self
.
tic
()
...
...
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