Skip to content

Commit 858d569

Browse files
committed
Move webauthn login route to authn
1 parent cc0c289 commit 858d569

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

routes/web.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
use Illuminate\Support\Facades\Route;
44

5-
Route::view('login', 'nova-webauthn::login');
5+
Route::view('/', 'nova-webauthn::login');

src/ToolServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ protected function routes(): void
4949
return;
5050
}
5151

52-
$prefix = trim(config('nova.path'), '/') . '/webauthn';
52+
$prefix = trim(config('nova.path'), '/') . '/authn';
5353

5454
Route::middleware(['nova'])->prefix($prefix)
5555
->group(__DIR__ . '/../routes/web.php');
@@ -67,7 +67,7 @@ protected function config(): void
6767
config([
6868
'auth.providers.users.driver' => 'eloquent-webauthn',
6969
'auth.providers.users.password_fallback' => true,
70-
'nova.routes.login' => $path . '/webauthn/login',
70+
'nova.routes.login' => $path . '/authn',
7171
]);
7272
}
7373
}

0 commit comments

Comments
 (0)