mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
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:
parent
13271a8a6d
commit
fcdfb04825
@ -98,7 +98,8 @@ class LoginContext extends BehatContext
|
|||||||
$member->FirstName = $permCode;
|
$member->FirstName = $permCode;
|
||||||
$member->Surname = "User";
|
$member->Surname = "User";
|
||||||
$member->Email = "$permCode@example.org";
|
$member->Email = "$permCode@example.org";
|
||||||
$member->changePassword('secret');
|
$member->PasswordEncryption = "none";
|
||||||
|
$member->changePassword('Secret!123');
|
||||||
$member->write();
|
$member->write();
|
||||||
$group->Members()->add($member);
|
$group->Members()->add($member);
|
||||||
\Member::set_password_validator($validator);
|
\Member::set_password_validator($validator);
|
||||||
@ -106,7 +107,7 @@ class LoginContext extends BehatContext
|
|||||||
$this->cache_generatedMembers[$permCode] = $member;
|
$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'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user