mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
20 lines
412 B
PHP
20 lines
412 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Security\Tests\PasswordEncryptorTest;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
use SilverStripe\Security\PasswordEncryptor;
|
|
|
|
class TestEncryptor extends PasswordEncryptor implements TestOnly
|
|
{
|
|
public function encrypt($password, $salt = null, $member = null)
|
|
{
|
|
return 'password';
|
|
}
|
|
|
|
public function salt($password, $member = null)
|
|
{
|
|
return 'salt';
|
|
}
|
|
}
|