pull/26/head
Ondřej Hruška 6 years ago
parent e97b45bd2e
commit 21bebc1ebf
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 10
      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');

Loading…
Cancel
Save