You can logout other sessions.

This commit is contained in:
James Cole
2020-06-27 15:42:18 +02:00
parent b83d06294d
commit 1e35f0e7e3
8 changed files with 85 additions and 0 deletions

View File

@@ -670,6 +670,14 @@ try {
}
);
Breadcrumbs::register(
'profile.logout-others',
static function (BreadcrumbsGenerator $breadcrumbs) {
$breadcrumbs->parent('home');
$breadcrumbs->push(trans('breadcrumbs.logout_others'), route('profile.logout-others'));
}
);
// PROFILE
Breadcrumbs::register(
'profile.index',

View File

@@ -716,6 +716,9 @@ Route::group(
Route::post('change-email', ['uses' => 'ProfileController@postChangeEmail', 'as' => 'change-email.post']);
Route::post('regenerate', ['uses' => 'ProfileController@regenerate', 'as' => 'regenerate']);
Route::get('logout-others', ['uses' => 'ProfileController@logoutOtherSessions', 'as' => 'logout-others']);
Route::post('logout-others', ['uses' => 'ProfileController@postLogoutOtherSessions', 'as' => 'logout-others.post']);
// new 2FA routes
Route::post('enable2FA', ['uses' => 'ProfileController@enable2FA', 'as' => 'enable2FA']);
Route::get('2fa/code', ['uses' => 'ProfileController@code', 'as' => 'code']);