Commit 61f967f5 authored by Aurel's avatar Aurel

when creating a credential recovery for a password, reference must be setted

parent 2bce3751
...@@ -579,6 +579,7 @@ class TestERP5Credential(ERP5TypeTestCase): ...@@ -579,6 +579,7 @@ class TestERP5Credential(ERP5TypeTestCase):
# associate it with barney # associate it with barney
credential_recovery.setDestinationDecisionValue(person) credential_recovery.setDestinationDecisionValue(person)
credential_recovery.setReference(person.getReference())
sequence.edit(credential_recovery=credential_recovery) sequence.edit(credential_recovery=credential_recovery)
def stepRequestCredentialRecoveryWithERP5Site_newCredentialRecovery(self, def stepRequestCredentialRecoveryWithERP5Site_newCredentialRecovery(self,
...@@ -668,10 +669,10 @@ class TestERP5Credential(ERP5TypeTestCase): ...@@ -668,10 +669,10 @@ class TestERP5Credential(ERP5TypeTestCase):
self.assertEqual(barney.getDefaultEmailText(), send_to) self.assertEqual(barney.getDefaultEmailText(), send_to)
def stepCheckPasswordChange(self, sequence=None, sequence_list=None, **kw): def stepCheckPasswordChange(self, sequence=None, sequence_list=None, **kw):
''' """
check it's possible to change the user password using the link in the check it's possible to change the user password using the link in the
email email
''' """
# get the url # get the url
last_message = self.portal.MailHost._last_message last_message = self.portal.MailHost._last_message
rawstr = r"""PasswordTool_viewResetPassword""" rawstr = r"""PasswordTool_viewResetPassword"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment