From 21bebc1ebf730b6e84028148361653b94f7c12fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Tue, 10 Jul 2018 09:47:48 +0200 Subject: [PATCH] fix routes --- routes/web.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/routes/web.php b/routes/web.php index e1b1e6a..963f90f 100644 --- a/routes/web.php +++ b/routes/web.php @@ -49,7 +49,7 @@ Route::get('/auth/github/callback', function() { abort(401, $e->getMessage()); } return Redirect::intended(); -})->name('oauth-github-login'); +})->name('oauth-github-callback'); @@ -57,7 +57,7 @@ Route::get('/auth/google/authorize', function() { return SocialAuth::authorize('google'); })->name('oauth-google-authorize'); -Route::get('/auth/google/login', function() { +Route::get('/auth/google/callback', function() { try { SocialAuth::login('google'); } catch (ApplicationRejectedException $e) { @@ -66,7 +66,7 @@ Route::get('/auth/google/login', function() { abort(401); } return Redirect::intended(); -})->name('oauth-google-login'); +})->name('oauth-google-callback'); @@ -75,7 +75,7 @@ Route::get('/auth/facebook/authorize', function() { return SocialAuth::authorize('facebook'); })->name('oauth-facebook-authorize'); -Route::get('/auth/facebook/login', function() { +Route::get('/auth/facebook/callback', function() { try { SocialAuth::login('facebook'); } catch (ApplicationRejectedException $e) { @@ -84,4 +84,4 @@ Route::get('/auth/facebook/login', function() { abort(401); } return Redirect::intended(); -})->name('oauth-facebook-login'); +})->name('oauth-facebook-callback');