🔧 Apporte des modifications de rétro-compatibilité
This commit is contained in:
@@ -32,9 +32,9 @@ class AuthServiceProvider extends ServiceProvider
|
||||
// the User instance via an API token or any other method necessary.
|
||||
|
||||
$this->app['auth']->viaRequest('api', function ( Request $request) {
|
||||
if ($request->input('token') && $request->input('email')) {
|
||||
if ($request->input('token')) {
|
||||
return User::where('token', $request->input('token'))
|
||||
->where('email', $request->input('email'))
|
||||
// ->where('email', $request->input('email'))
|
||||
->first();
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user