hmm
This commit is contained in:
+2
-4
@@ -35,11 +35,9 @@ Route::get('/auth/github/callback', function() {
|
||||
try {
|
||||
SocialAuth::login('github');
|
||||
} catch (ApplicationRejectedException $e) {
|
||||
dd($e);
|
||||
abort(401);
|
||||
abort(401, $e->getMessage());
|
||||
} catch (InvalidAuthorizationCodeException $e) {
|
||||
dd($e);
|
||||
abort(401);
|
||||
abort(401, $e->getMessage());
|
||||
}
|
||||
return Redirect::intended();
|
||||
})->name('oauth-github-login');
|
||||
|
||||
Reference in New Issue
Block a user