How to enable OTP access in the document request?

Tabla de contenidos

You can add an extra layer of security to the document request so that users authenticate with a one-time password (OTP) that they will receive by SMS or by email. To enable OTP in Athento document requests, review the following points.

 

1. Enable OTP request in the document request automation

In the automation “Create new document request (configurable)”, enable the OTP request option.

2. OTP configuration in the Document Request Config object

In this object you can configure additional options related to the OTP request.

More information at:

Add expiration time to OTP tokens in document request

Set a number of login attempts with OTP in document requests

 

3. If you use a custom email template (notification template)

If you use a custom email template, in the document request URL automatically generated by the product you must add the OTP parameter to true.

{{upload_url}}?ot=1

Basic concepts for creating a Notification Template (Notification Template)

4. If you use a custom page for document upload (Documents request page templates)

On the custom page, the “main” (main) block, where the content is displayed, must be “main_otp”.

{# Allows you to modify the main #}
{% block main_otp %}
{% endblock main_otp %}

How to customize the appearance of the document request page?

 

How OTP works in the document request

The OTP is sent when accessing the document request. If the same request is accessed several times in a row, the code will be sent only once. It will be sent again when some time has passed since the last sending.

The OTP will be sent to:

  • If a phone number was provided in the document request, it will be sent by SMS to that number.
  • If no phone number was provided, it will be sent by email to the email address provided in the document request.

You can force the OTP to be resent by clicking the “Resend” button.

When resending the code, the previous OTP will be invalidated and the new OTP will be the only valid one to access the document request.

 

How to customize the SMS text that sends the OTP

The text that is sent by SMS along with the OTP can be customized. To do so, enable the setting SMS_TEXT_OTP_DOCUMENT_REQUEST. By default, its value is “Your code is {}”.

To customize it, set the setting SMS_TEXT_OTP_DOCUMENT_REQUEST with the text you need, for example: “Please enter the code {} to send your documents”. The text must always include {} in the position where you want the generated OTP code to be inserted.