mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX Add namespace and encryptor to tests that expect blowfish to be available
This commit is contained in:
parent
bb1f0cce58
commit
e7e32d13a3
@ -21,6 +21,7 @@ use SilverStripe\Security\Member_Validator;
|
|||||||
use SilverStripe\Security\MemberAuthenticator\MemberAuthenticator;
|
use SilverStripe\Security\MemberAuthenticator\MemberAuthenticator;
|
||||||
use SilverStripe\Security\MemberAuthenticator\SessionAuthenticationHandler;
|
use SilverStripe\Security\MemberAuthenticator\SessionAuthenticationHandler;
|
||||||
use SilverStripe\Security\MemberPassword;
|
use SilverStripe\Security\MemberPassword;
|
||||||
|
use SilverStripe\Security\PasswordEncryptor_Blowfish;
|
||||||
use SilverStripe\Security\Permission;
|
use SilverStripe\Security\Permission;
|
||||||
use SilverStripe\Security\RememberLoginHash;
|
use SilverStripe\Security\RememberLoginHash;
|
||||||
use SilverStripe\Security\Security;
|
use SilverStripe\Security\Security;
|
||||||
@ -899,6 +900,8 @@ class MemberTest extends FunctionalTest
|
|||||||
|
|
||||||
public function testValidateAutoLoginToken()
|
public function testValidateAutoLoginToken()
|
||||||
{
|
{
|
||||||
|
$enc = new PasswordEncryptor_Blowfish();
|
||||||
|
|
||||||
$m1 = new Member();
|
$m1 = new Member();
|
||||||
$m1->PasswordEncryption = 'blowfish';
|
$m1->PasswordEncryption = 'blowfish';
|
||||||
$m1->Salt = $enc->salt('123');
|
$m1->Salt = $enc->salt('123');
|
||||||
|
Loading…
Reference in New Issue
Block a user