mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
Merge pull request #80 from silverstripe-iterators/pulls/password-complexity
More complex password default to comply with custom authenticators
This commit is contained in:
commit
f3c5df7957
@ -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