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.
12 lines
219 B
Ruby
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
|