Add authentication history (#16408)
This commit is contained in:
parent
946200b471
commit
d174d12c83
19 changed files with 206 additions and 21 deletions
|
@ -1004,6 +1004,17 @@ en:
|
|||
lists:
|
||||
errors:
|
||||
limit: You have reached the maximum amount of lists
|
||||
login_activities:
|
||||
authentication_methods:
|
||||
otp: two-factor authentication app
|
||||
password: password
|
||||
sign_in_token: e-mail security code
|
||||
webauthn: security keys
|
||||
description_html: If you see activity that you don't recognize, consider changing your password and enabling two-factor authentication.
|
||||
empty: No authentication history available
|
||||
failed_sign_in_html: Failed sign-in attempt with %{method} from %{ip} (%{browser})
|
||||
successful_sign_in_html: Successful sign-in with %{method} from %{ip} (%{browser})
|
||||
title: Authentication history
|
||||
media_attachments:
|
||||
validations:
|
||||
images_and_video: Cannot attach a video to a post that already contains images
|
||||
|
@ -1211,6 +1222,7 @@ en:
|
|||
revoke: Revoke
|
||||
revoke_success: Session successfully revoked
|
||||
title: Sessions
|
||||
view_authentication_history: View authentication history of your account
|
||||
settings:
|
||||
account: Account
|
||||
account_settings: Account settings
|
||||
|
|
|
@ -20,7 +20,7 @@ SimpleNavigation::Configuration.run do |navigation|
|
|||
n.item :filters, safe_join([fa_icon('filter fw'), t('filters.index.title')]), filters_path, highlights_on: %r{/filters}, if: -> { current_user.functional? }
|
||||
|
||||
n.item :security, safe_join([fa_icon('lock fw'), t('settings.account')]), edit_user_registration_url do |s|
|
||||
s.item :password, safe_join([fa_icon('lock fw'), t('settings.account_settings')]), edit_user_registration_url, highlights_on: %r{/auth/edit|/settings/delete|/settings/migration|/settings/aliases}
|
||||
s.item :password, safe_join([fa_icon('lock fw'), t('settings.account_settings')]), edit_user_registration_url, highlights_on: %r{/auth/edit|/settings/delete|/settings/migration|/settings/aliases|/settings/login_activities}
|
||||
s.item :two_factor_authentication, safe_join([fa_icon('mobile fw'), t('settings.two_factor_authentication')]), settings_two_factor_authentication_methods_url, highlights_on: %r{/settings/two_factor_authentication|/settings/otp_authentication|/settings/security_keys}
|
||||
s.item :authorized_apps, safe_join([fa_icon('list fw'), t('settings.authorized_apps')]), oauth_authorized_applications_url
|
||||
end
|
||||
|
|
|
@ -164,6 +164,7 @@ Rails.application.routes.draw do
|
|||
resources :aliases, only: [:index, :create, :destroy]
|
||||
resources :sessions, only: [:destroy]
|
||||
resources :featured_tags, only: [:index, :create, :destroy]
|
||||
resources :login_activities, only: [:index]
|
||||
end
|
||||
|
||||
resources :media, only: [:show] do
|
||||
|
@ -222,7 +223,7 @@ Rails.application.routes.draw do
|
|||
post :stop_delivery
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
resources :rules
|
||||
|
||||
resources :reports, only: [:index, :show] do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue