mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-23 21:47:59 +01:00
26 lines
522 B
PHP
26 lines
522 B
PHP
|
<?php
|
||
|
use Illuminate\Auth\EloquentUserProvider;
|
||
|
use Illuminate\Contracts\Hashing\Hasher;
|
||
|
|
||
|
class NullHasher implements Hasher
|
||
|
{
|
||
|
public function make($value, array $options = array())
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public function check($value, $hashedValue, array $options = array())
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public function needsRehash($hashedValue, array $options = array())
|
||
|
{
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class PFMAuth extends EloquentUserProvider
|
||
|
{
|
||
|
function __construct()
|
||
|
{
|
||
|
parent::__construct(new NullHasher(), 'Entities\User');
|
||
|
}
|
||
|
}
|