login update

This commit is contained in:
2026-03-05 11:24:37 +01:00
parent 5a33ca55a1
commit f6772f673b
67 changed files with 10640 additions and 116 deletions

View File

@@ -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');