Kernel::WebApp::Util::TwoFactor::HOTPBase

NAME

Kernel::WebApp::Util::TwoFactor::HOTPBase – This is the base module for the HOTP-based two-factor methods

PUBLIC INTERFACE

SendTokenViaTransportLimitCheck()

Check the limit for sending the OTP token via transport. Return true if the limit is reached (Limit: 5).

SendTokenViaTransportCountSet()

Set the current count and last usage for the send token via transport.

PRIVATE INTERFACE

_SendEmail()

Send the email with the given subject and body.

_EmailSecurityOptionsGet()

Returns security options suitable for encrypting emails when using Send() method.

    my $SecurityOptions = $Self->_EmailSecurityOptionsGet(
        FromEmail           => $FromEmail, # (required) Sender email address.
        ToEmail             => $ToEmail,   # (required) Recipient email address.
        HasHTMLBody         => 1,          # (optional) Whether the message contain an HTML body.
        SkipPreferenceCheck => 1,          # (optional) For the setup.
    );
Scroll to Top