Pony.fm/app/library/PFMAuth.php

21 lines
535 B
PHP
Raw Normal View History

2013-07-25 23:33:04 +02:00
<?php
use Illuminate\Auth\EloquentUserProvider;
use Illuminate\Auth\UserInterface;
2013-09-01 04:59:12 +02:00
use Illuminate\Hashing\HasherInterface;
2013-07-25 23:33:04 +02:00
2013-09-01 04:59:12 +02:00
class NullHasher implements HasherInterface {
public function make($value, array $options = array()) {
}
2013-07-25 23:33:04 +02:00
2013-09-01 04:59:12 +02:00
public function check($value, $hashedValue, array $options = array()) {
2013-07-25 23:33:04 +02:00
}
2013-09-01 04:59:12 +02:00
public function needsRehash($hashedValue, array $options = array()) {
}
}
class PFMAuth extends EloquentUserProvider {
function __construct() {
parent::__construct(new NullHasher(), 'Entities\User');
2013-07-25 23:33:04 +02:00
}
}