Update config; change authentication method

This commit is contained in:
Kelvin Zhang 2015-09-05 16:09:25 +01:00
parent dc46b4c659
commit 261b6abb18
4 changed files with 33 additions and 4 deletions

View file

@ -21,6 +21,6 @@ class PFMAuth extends EloquentUserProvider
{
function __construct()
{
parent::__construct(new NullHasher(), 'Entities\User');
parent::__construct(new NullHasher(), 'App\User');
}
}

View file

@ -2,7 +2,13 @@
namespace App\Providers;
use App;
use Auth;
use Illuminate\Auth\Guard;
use Illuminate\Support\ServiceProvider;
// use PFMAuth;
use PfmValidator;
use Validator;
class AppServiceProvider extends ServiceProvider
{
@ -13,7 +19,16 @@ class AppServiceProvider extends ServiceProvider
*/
public function boot()
{
//
/*
Auth::extend('pfm', function() {
return new Guard(new PFMAuth(), App::make('session.store'));
});
*/
Validator::resolver(function($translator, $data, $rules, $messages)
{
return new PfmValidator($translator, $data, $rules, $messages);
});
}
/**

View file

@ -26,7 +26,7 @@ return [
|
*/
'url' => 'http://localhost',
'url' => 'http://pony.fm',
/*
|--------------------------------------------------------------------------
@ -78,7 +78,7 @@ return [
|
*/
'key' => env('APP_KEY', 'SomeRandomString'),
'key' => env('APP_KEY', 'AQUSDTDK5xA04yb9eO9iwlm72NpC8e90'),
'cipher' => 'AES-256-CBC',
@ -144,6 +144,7 @@ return [
App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class,
// Intouch\LaravelNewrelic\LaravelNewrelicServiceProvider::class,
Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
],
@ -194,6 +195,8 @@ return [
'Validator' => Illuminate\Support\Facades\Validator::class,
'View' => Illuminate\Support\Facades\View::class,
// 'Newrelic' => Intouch\LaravelNewrelic\Facades\Newrelic::class,
],
];

11
config/poniverse.php Normal file
View file

@ -0,0 +1,11 @@
<?php
return [
'version' => 1,
'urls' => [
'api' => '',
'auth' => '',
'token' => ''
],
'client_id' => 0,
'secret' => ''
];