mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-16 16:37:47 +00:00
refactor: rebase on Livewire 4 starter kit
This commit is contained in:
parent
b097b0a7d7
commit
e660da46fb
69 changed files with 1967 additions and 942 deletions
|
|
@ -1,24 +1,10 @@
|
|||
<?php
|
||||
|
||||
use App\Http\Controllers\Auth\OidcController;
|
||||
use App\Http\Controllers\Auth\VerifyEmailController;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
// Other Auth routes are handled by Fortify
|
||||
Route::middleware('guest')->group(function () {
|
||||
Route::livewire('login', 'auth.login')
|
||||
->name('login');
|
||||
|
||||
if (config('app.registration.enabled')) {
|
||||
Route::livewire('register', 'auth.register')
|
||||
->name('register');
|
||||
}
|
||||
|
||||
Route::livewire('forgot-password', 'auth.forgot-password')
|
||||
->name('password.request');
|
||||
|
||||
Route::livewire('reset-password/{token}', 'auth.reset-password')
|
||||
->name('password.reset');
|
||||
|
||||
// OIDC authentication routes
|
||||
Route::get('auth/oidc/redirect', [OidcController::class, 'redirect'])
|
||||
->name('auth.oidc.redirect');
|
||||
|
|
@ -27,18 +13,3 @@ Route::middleware('guest')->group(function () {
|
|||
->name('auth.oidc.callback');
|
||||
|
||||
});
|
||||
|
||||
Route::middleware('auth')->group(function () {
|
||||
Route::livewire('verify-email', 'auth.verify-email')
|
||||
->name('verification.notice');
|
||||
|
||||
Route::get('verify-email/{id}/{hash}', VerifyEmailController::class)
|
||||
->middleware(['signed', 'throttle:6,1'])
|
||||
->name('verification.verify');
|
||||
|
||||
Route::livewire('confirm-password', 'auth.confirm-password')
|
||||
->name('password.confirm');
|
||||
});
|
||||
|
||||
Route::post('logout', App\Livewire\Actions\Logout::class)
|
||||
->name('logout');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue