This commit is contained in:
2018-07-09 06:33:27 +02:00
parent fd296e2d8f
commit 1ab7b7a3c4
2 changed files with 3 additions and 6 deletions
+2 -4
View File
@@ -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');