login update
This commit is contained in:
@@ -11,9 +11,22 @@ use App\Http\Controllers\Auth\RegisteredUserController;
|
||||
use App\Http\Controllers\Auth\RegistrationVerificationController;
|
||||
use App\Http\Controllers\Auth\SetupPasswordController;
|
||||
use App\Http\Controllers\Auth\SetupUsernameController;
|
||||
use App\Http\Controllers\Auth\OAuthController;
|
||||
use App\Http\Controllers\Auth\VerifyEmailController;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
// ── OAuth / Social Login ─────────────────────────────────────────────────────
|
||||
Route::middleware('guest')->group(function (): void {
|
||||
Route::get('auth/{provider}/redirect', [OAuthController::class, 'redirectToProvider'])
|
||||
->where('provider', 'google|discord')
|
||||
->name('oauth.redirect');
|
||||
|
||||
// Google and Discord use GET callbacks; Apple sends a POST on first login.
|
||||
Route::match(['get', 'post'], 'auth/{provider}/callback', [OAuthController::class, 'handleProviderCallback'])
|
||||
->where('provider', 'google|discord')
|
||||
->name('oauth.callback');
|
||||
});
|
||||
|
||||
Route::middleware(['guest', 'normalize.username'])->group(function () {
|
||||
Route::get('register', [RegisteredUserController::class, 'create'])
|
||||
->name('register');
|
||||
|
||||
Reference in New Issue
Block a user