Skip to content

Commit

Permalink
Merge branch 'main' of github.com:vormkracht10/filament-two-factor-auth
Browse files Browse the repository at this point in the history
  • Loading branch information
Baspa committed Aug 16, 2024
2 parents a61ab00 + 018800a commit a1a3ace
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/TwoFactorAuthPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Vormkracht10\TwoFactorAuth;

use Filament\Panel;
use Filament\Contracts\Plugin;
use Filament\Navigation\MenuItem;
use Filament\Panel;
use Vormkracht10\TwoFactorAuth\Pages\TwoFactor;

class TwoFactorAuthPlugin implements Plugin
Expand Down
18 changes: 9 additions & 9 deletions src/TwoFactorAuthServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,17 +125,17 @@ public function packageBooted(): void
->name('filament.')
->group(function () {
/**
* We do not need to override logout response and logout path as:
* - logout response for both filament and fortify does
* basically the same things except fortify handle for api calls
* - for api calls still can use POST fortify's /logout route
* - filament's logout route is at /filament/logout
*/
* We do not need to override logout response and logout path as:
* - logout response for both filament and fortify does
* basically the same things except fortify handle for api calls
* - for api calls still can use POST fortify's /logout route
* - filament's logout route is at /filament/logout
*/

/**
* Redeclare filament.auth.login route as fortify override it
* This route name is used multiple places in filament.
*/
* Redeclare filament.auth.login route as fortify override it
* This route name is used multiple places in filament.
*/
Route::prefix(config('filament.path'))->group(function () {
Route::get('/filament-login', fn () => Redirect::route('login'))
->name('auth.login');
Expand Down

0 comments on commit a1a3ace

Please sign in to comment.