More complex password default to comply with custom authenticators

Changed from 'secret' to 'Secret!123'.

For example, the CWP default configuration increases the required
complexity to include uppercase letters, see https://gitlab.cwp.govt.nz/cwp/cwp-core/blob/master/_config.php#L134

This should not impact existing tests since the password is only used
indirectly, through "Given I login with ADMIN permissions".
This commit is contained in:
Ingo Schommer 2015-01-06 13:54:01 +13:00
parent 13271a8a6d
commit fcdfb04825

View File

@ -98,7 +98,8 @@ class LoginContext extends BehatContext
$member->FirstName = $permCode;
$member->Surname = "User";
$member->Email = "$permCode@example.org";
$member->changePassword('secret');
$member->PasswordEncryption = "none";
$member->changePassword('Secret!123');
$member->write();
$group->Members()->add($member);
\Member::set_password_validator($validator);
@ -106,7 +107,7 @@ class LoginContext extends BehatContext
$this->cache_generatedMembers[$permCode] = $member;
}
return new Step\Given(sprintf('I log in with "%s" and "%s"', "$permCode@example.org", 'secret'));
return new Step\Given(sprintf('I log in with "%s" and "%s"', "$permCode@example.org", 'Secret!123'));
}
/**