mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-02 03:51:18 +00:00
You can logout other sessions.
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user