1
0
mirror of https://github.com/flarum/core.git synced 2025-08-11 02:44:04 +02:00

feat: global logout to clear all sessions, access tokens, email tokens and password tokens (#3605)

* chore: re-organize security locale keys alphabetically
* test: can globally logout
* feat: add global logout controller
* feat: add global logout UI to user security page
* test: re-adapt tests to changes
* feat: add boolean to indicate if logout even is global
* chore(review): split loading property
* chore: follow-up branch update

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
This commit is contained in:
Sami Mazouz
2023-02-21 15:28:55 +01:00
committed by GitHub
parent d35bb873a8
commit bbf873442a
8 changed files with 239 additions and 20 deletions

View File

@@ -472,11 +472,16 @@ core:
# These translations are used in the Security page.
security:
developer_tokens_heading: Developer Tokens
current_active_session: Current Active Session
browser_on_operating_system: "{browser} on {os}"
cannot_terminate_current_session: Cannot terminate the current active session. Log out instead.
created: Created
current_active_session: Current Active Session
developer_tokens_heading: Developer Tokens
empty_text: It looks like there is nothing to see here.
global_logout:
heading: Global Logout
help_text: "Clears current cookie session, terminates all sessions, revokes developer tokens, and invalidates any email confirmation or password reset emails."
log_out_button: => core.ref.log_out
hide_access_token: Hide Token
last_activity: Last activity
never: Never
@@ -485,7 +490,6 @@ core:
submit_button: Create Token
title: => core.ref.new_token
title_placeholder: Title
empty_text: It looks like there is nothing to see here.
revoke_access_token: Revoke
revoke_access_token_confirmation: => core.ref.generic_confirmation_message
sessions_heading: Active Sessions