Commit 9472620d authored by Jérome Perrin's avatar Jérome Perrin

authentication policy: test passord reset through password tool

parent 71ba36ef
...@@ -741,6 +741,10 @@ class TestAuthenticationPolicy(ERP5TypeTestCase): ...@@ -741,6 +741,10 @@ class TestAuthenticationPolicy(ERP5TypeTestCase):
default_destination_uid = login.getUid(), default_destination_uid = login.getUid(),
validation_state = "expired"))) validation_state = "expired")))
# Here we activate the "password should contain usename" policy
# as a way to check that password reset checks are done in the
# context of the login
def test_PreferenceTool_changePassword_checks_policy(self): def test_PreferenceTool_changePassword_checks_policy(self):
person = self.createUser(self.id(), password='current') person = self.createUser(self.id(), password='current')
login = person.objectValues(portal_type='ERP5 Login')[0] login = person.objectValues(portal_type='ERP5 Login')[0]
......
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