Sha256: 7843f9412aa658211e31c4814374a0a1c94e068b3c9d41e12897f53d0d0752e1

Contents?: true

Size: 653 Bytes

Versions: 3

Compression:

Stored size: 653 Bytes

Contents

# frozen-string-literal: true

module Rodauth
  Feature.define(:webauthn_modify_email, :WebauthnModifyEmail) do
    depends :webauthn, :email_base

    loaded_templates %w'webauthn-authenticator-added-email webauthn-authenticator-removed-email'
    email :webauthn_authenticator_added, 'WebAuthn Authenticator Added', :translatable=>true
    email :webauthn_authenticator_removed, 'WebAuthn Authenticator Removed', :translatable=>true

    private

    def after_webauthn_setup
      super
      send_webauthn_authenticator_added_email
    end

    def after_webauthn_remove
      super
      send_webauthn_authenticator_removed_email
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rodauth-2.38.0 lib/rodauth/features/webauthn_modify_email.rb
rodauth-2.37.0 lib/rodauth/features/webauthn_modify_email.rb
rodauth-2.36.0 lib/rodauth/features/webauthn_modify_email.rb