Files
nairobi/app/components/account/sign_in_info_component.rb
taitus 87fc3c572b Add security secret "last_sign_in"
In order to comply with the security measure for the
ENS: "[op.acc.5.r5.2] The user shall be informed of
the last access made with his identity".

We have added a new secret to display the last
access made to the user on the "My account" page.
2023-10-20 08:03:24 +02:00

12 lines
219 B
Ruby

class Account::SignInInfoComponent < ApplicationComponent
attr_reader :account
def initialize(account)
@account = account
end
def render?
Tenant.current_secrets.dig(:security, :last_sign_in)
end
end