silverstripe-framework/tests/php/Security/PasswordEncryptorTest/TestEncryptor.php

20 lines
412 B
PHP
Raw Normal View History

2016-10-14 03:30:05 +02:00
<?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';
}
2016-10-14 03:30:05 +02:00
public function salt($password, $member = null)
{
return 'salt';
}
2016-10-14 03:30:05 +02:00
}