Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add success notification for browser sessions logout #39

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions resources/lang/ar/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@
'browser_sessions_last_active' => 'آخر نشاط',
'browser_sessions_log_out' => 'تسجيل الخروج من جلسات المتصفح الأخرى',
'browser_sessions_confirm_pass' => 'يُرجى إدخال كلمة المرور الخاصة بك لتأكيد رغبتك في تسجيل الخروج من جلسات المتصفح الأخرى عبر جميع أجهزتك.',
'browser_sessions_logout_success_notification' => 'تم تسجيل الخروج من جميع جلسات المتصفح الأخرى بنجاح.',
];
1 change: 1 addition & 0 deletions resources/lang/de/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@
'browser_sessions_last_active' => 'Zuletzt aktiv',
'browser_sessions_log_out' => 'Von anderen Browsersitzungen abmelden',
'browser_sessions_confirm_pass' => 'Bitte geben Sie Ihr Passwort ein, um zu bestätigen, dass Sie sich von Ihren anderen Browsersitzungen auf all Ihren Geräten abmelden möchten.',
'browser_sessions_logout_success_notification' => 'Alle anderen Browsersitzungen wurden erfolgreich abgemeldet.',
];
1 change: 1 addition & 0 deletions resources/lang/en/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@
'browser_sessions_last_active' => 'Last active',
'browser_sessions_log_out' => 'Log Out Other Browser Sessions',
'browser_sessions_confirm_pass' => 'Please enter your password to confirm you would like to log out of your other browser sessions across all of your devices.',
'browser_sessions_logout_success_notification' => 'All other browser sessions have been logged out successfully.',
];
1 change: 1 addition & 0 deletions resources/lang/es/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@
'browser_sessions_last_active' => 'Última activa',
'browser_sessions_log_out' => 'Cerrar otras sesiones del navegador',
'browser_sessions_confirm_pass' => 'Por favor, introduzca su contraseña para confirmar que desea salir de sus otras sesiones de navegación en todos sus dispositivos',
'browser_sessions_logout_success_notification' => 'Se han cerrado todas las demás sesiones del navegador con éxito.',
];
1 change: 1 addition & 0 deletions resources/lang/fa/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@
'browser_sessions_last_active' => 'آخرین فعالیت',
'browser_sessions_log_out' => 'از سایر سشن های مرورگر خارج شوید',
'browser_sessions_confirm_pass' => 'لطفاً رمز عبور خود را وارد کنید تا تأیید کنید که می خواهید از سایر سشن های مرورگر خود در همه دستگاه های خود خارج شوید.',
'browser_sessions_logout_success_notification' => 'تمامی جلسات دیگر مرورگر با موفقیت خارج شدند.',
];
1 change: 1 addition & 0 deletions resources/lang/fr/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@
'browser_sessions_last_active' => 'Dernier actif',
'browser_sessions_log_out' => 'Déconnexion des autres sessions du navigateur',
'browser_sessions_confirm_pass' => 'Veuillez saisir votre mot de passe pour confirmer que vous souhaitez vous déconnecter de vos autres sessions de navigateur sur tous vos appareils.',
'browser_sessions_logout_success_notification' => 'Toutes les autres sessions de navigateur ont été déconnectées avec succès.',
];
1 change: 1 addition & 0 deletions resources/lang/hu/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@
'browser_sessions_last_active' => 'Legutóbbi aktivitás',
'browser_sessions_log_out' => 'Kijelentkezés más böngésző munkamenetekből',
'browser_sessions_confirm_pass' => 'Kérjük, add meg a jelszavad, hogy megerősítsd, ki szeretnél jelentkezni az összes többi böngésző munkamenetből az összes eszközödön.',
'browser_sessions_logout_success_notification' => 'Az összes többi böngésző munkamenet sikeresen kijelentkezett.',
];
1 change: 1 addition & 0 deletions resources/lang/it/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@
'token_modal_heading_2' => 'Copia il Token di Accesso Personale',
'token_empty_state_heading' => 'Crea il tuo primo token',
'token_empty_state_description' => 'Crea un token di accesso personale per iniziare.',
'browser_sessions_logout_success_notification' => 'Tutte le altre sessioni del browser sono state disconnesse con successo.'
];
1 change: 1 addition & 0 deletions resources/lang/nl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@
'browser_sessions_last_active' => 'Laatst actief',
'browser_sessions_log_out' => 'Log Uit bij Andere Browsersessies',
'browser_sessions_confirm_pass' => 'Voer uw wachtwoord in om te bevestigen dat u wilt uitloggen bij uw andere browsersessies op al uw apparaten.',
'browser_sessions_logout_success_notification' => 'Alle andere browsersessies zijn succesvol uitgelogd.',
];
1 change: 1 addition & 0 deletions resources/lang/pl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@
'browser_sessions_last_active' => 'Ostatnia aktywność',
'browser_sessions_log_out' => 'Wyloguj inne sesje przeglądarki',
'browser_sessions_confirm_pass' => 'Wprowadź swoje hasło, aby potwierdzić, że chcesz wylogować się z innych sesji przeglądarki na wszystkich swoich urządzeniach.',
'browser_sessions_logout_success_notification' => 'Wszystkie inne sesje przeglądarki zostały pomyślnie wylogowane.',
];
1 change: 1 addition & 0 deletions resources/lang/pt/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@
'browser_sessions_last_active' => 'Última atividade',
'browser_sessions_log_out' => 'Terminar Sessões de Outros Navegadores',
'browser_sessions_confirm_pass' => 'Por favor, introduza a sua palavra-passe para confirmar que deseja terminar as sessões de outros navegadores em todos os seus dispositivos.',
'browser_sessions_logout_success_notification' => 'Todas as outras sessões do navegador foram desconectadas com êxito.',
];
1 change: 1 addition & 0 deletions resources/lang/pt_BR/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
'browser_sessions_last_active' => 'Ultima Atividade',
'browser_sessions_log_out' => 'Sair de outras sessões do navegador',
'browser_sessions_confirm_pass' => 'Digite sua senha para confirmar que deseja sair das outras sessões do navegador em todos os seus dispositivos.',
'browser_sessions_logout_success_notification' => 'Todas as outras sessões do navegador foram desconectadas com sucesso.',
];
5 changes: 5 additions & 0 deletions src/Livewire/BrowserSessionsForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ public static function logoutOtherBrowserSessions($password): void
]);

self::deleteOtherSessionRecords();

Notification::make()
->success()
->title(__('filament-edit-profile::default.browser_sessions_logout_success_notification'))
->send();
}

protected static function deleteOtherSessionRecords()
Expand Down