diff --git a/routes/web/adminarea.php b/routes/web/adminarea.php index 1e8bce0d..5caa9700 100644 --- a/routes/web/adminarea.php +++ b/routes/web/adminarea.php @@ -27,8 +27,7 @@ Route::name('adminarea.') ->middleware(['web', 'nohttpcache']) ->prefix(route_prefix('adminarea'))->group(function () { - - // Authenticate broadcasting to channels + // Authenticate broadcasting to channels Route::match(['get', 'post'], 'broadcasting/auth')->name('broadcast')->uses([AuthenticationController::class, 'broadcast']); Route::name('cortex.auth.account.')->group(function () { @@ -82,7 +81,6 @@ }); Route::middleware(['can:access-adminarea'])->group(function () { - // Account Settings Route Alias Route::get('account')->name('cortex.auth.account')->uses([AccountSettingsController::class, 'index']); @@ -107,7 +105,6 @@ // Account TwoFactor Routes Route::get('twofactor')->name('twofactor')->uses([AccountTwoFactorController::class, 'index']); Route::name('twofactor.')->prefix('twofactor')->group(function () { - // Account TwoFactor TOTP Routes Route::name('totp.')->prefix('totp')->group(function () { Route::get('enable')->name('enable')->uses([AccountTwoFactorController::class, 'enableTotp']); diff --git a/routes/web/frontarea.php b/routes/web/frontarea.php index 912209df..b9afabb4 100644 --- a/routes/web/frontarea.php +++ b/routes/web/frontarea.php @@ -21,7 +21,6 @@ Route::name('frontarea.') ->middleware(['web', 'nohttpcache']) ->prefix(route_prefix('frontarea'))->group(function () { - // Authenticate broadcasting to channels Route::match(['get', 'post'], 'broadcasting/auth')->name('broadcast')->uses([AuthenticationController::class, 'broadcast']); @@ -113,7 +112,6 @@ // Account TwoFactor Routes Route::get('twofactor')->name('twofactor')->uses([AccountTwoFactorController::class, 'index']); Route::name('twofactor.')->prefix('twofactor')->group(function () { - // Account TwoFactor TOTP Routes Route::name('totp.')->prefix('totp')->group(function () { Route::get('enable')->name('enable')->uses([AccountTwoFactorController::class, 'enableTotp']); diff --git a/routes/web/managerarea.php b/routes/web/managerarea.php index cbea5928..0e5e719f 100644 --- a/routes/web/managerarea.php +++ b/routes/web/managerarea.php @@ -23,8 +23,7 @@ Route::name('managerarea.') ->middleware(['web', 'nohttpcache']) ->prefix(route_prefix('managerarea'))->group(function () { - - // Authenticate broadcasting to channels + // Authenticate broadcasting to channels Route::match(['get', 'post'], 'broadcasting/auth')->name('broadcast')->uses([AuthenticationController::class, 'broadcast']); Route::name('cortex.auth.account.')->group(function () { @@ -78,7 +77,6 @@ }); Route::middleware(['can:access-managerarea'])->group(function () { - // Account Settings Route Alias Route::get('account')->name('cortex.auth.account')->uses([AccountSettingsController::class, 'index']); @@ -103,7 +101,6 @@ // Account TwoFactor Routes Route::get('twofactor')->name('twofactor')->uses([AccountTwoFactorController::class, 'index']); Route::name('twofactor.')->prefix('twofactor')->group(function () { - // Account TwoFactor TOTP Routes Route::name('totp.')->prefix('totp')->group(function () { Route::get('enable')->name('enable')->uses([AccountTwoFactorController::class, 'enableTotp']); diff --git a/routes/web/tenantarea.php b/routes/web/tenantarea.php index f47f93cd..ae4d5fbb 100644 --- a/routes/web/tenantarea.php +++ b/routes/web/tenantarea.php @@ -20,7 +20,6 @@ Route::name('tenantarea.') ->middleware(['web', 'nohttpcache']) ->prefix(route_prefix('tenantarea'))->group(function () { - // Authenticate broadcasting to channels Route::match(['get', 'post'], 'broadcasting/auth')->name('broadcast')->uses([AuthenticationController::class, 'broadcast']); @@ -106,7 +105,6 @@ // Account TwoFactor Routes Route::get('twofactor')->name('twofactor')->uses([AccountTwoFactorController::class, 'index']); Route::name('twofactor.')->prefix('twofactor')->group(function () { - // Account TwoFactor TOTP Routes Route::name('totp.')->prefix('totp')->group(function () { Route::get('enable')->name('enable')->uses([AccountTwoFactorController::class, 'enableTotp']); diff --git a/src/Listeners/EnforceSingleSession.php b/src/Listeners/EnforceSingleSession.php index ec9e3fdb..7ded7daf 100644 --- a/src/Listeners/EnforceSingleSession.php +++ b/src/Listeners/EnforceSingleSession.php @@ -33,7 +33,6 @@ public function __construct() * @TODO #1: Review this method! * Check => \Cortex\Auth\Http\Middleware\AuthenticateSession * Also check => logoutOtherDevices method - * * @TODO #2: Add support for Laravel Passport login `AccessTokenCreated` * * Listen to the authentication login event. diff --git a/src/Models/Session.php b/src/Models/Session.php index 290fca07..535dd651 100644 --- a/src/Models/Session.php +++ b/src/Models/Session.php @@ -38,6 +38,7 @@ * @method static \Illuminate\Database\Eloquent\Builder|\Cortex\Auth\Models\Session whereUserAgent($value) * @method static \Illuminate\Database\Eloquent\Builder|\Cortex\Auth\Models\Session whereUserId($value) * @method static \Illuminate\Database\Eloquent\Builder|\Cortex\Auth\Models\Session whereUserType($value) + * * @mixin \Eloquent */ class Session extends Model diff --git a/src/Models/Socialite.php b/src/Models/Socialite.php index d741ebc6..cf91ca42 100644 --- a/src/Models/Socialite.php +++ b/src/Models/Socialite.php @@ -29,6 +29,7 @@ * @method static \Illuminate\Database\Eloquent\Builder|\Cortex\Auth\Models\Socialite whereUpdatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|\Cortex\Auth\Models\Socialite whereUserId($value) * @method static \Illuminate\Database\Eloquent\Builder|\Cortex\Auth\Models\Socialite whereUserType($value) + * * @mixin \Eloquent */ class Socialite extends Model