Skip to main content

Sign-in codes for the Investor portal

Configure, troubleshoot, and recover email and text message sign-in codes for Investor portal two-factor authentication.

Use this guide to configure, troubleshoot, and recover email and text message sign-in codes for the Investor portal. Beside an authenticator app, DALP accepts a six-digit code sent to the account's email address, or by text message to a verified phone number already stored on the account, when every organisation the investor belongs to allows that method.

Both code methods are second factors after the password and are disabled by default. Because organisation owners enable them through the API rather than a UI screen, this page serves organisation owners managing sign-in policy and support teams resolving failed or locked investor sign-ins.

Email and text message codes apply to Investor portal sign-in only. Console sign-in accepts an authenticator code or backup code only. Neither the Console's Security page nor the Investor portal's Security screen offers controls for email or text message codes.

Sign-in flow

  1. Sign in with email and password

    Open the Investor portal sign-in screen and enter the account's email address and password. Because two-factor authentication is enabled, the API returns a challenge instead of a session and opens the Two-factor authentication dialog.

    When more than one method is permitted and deliverable, the dialog shows buttons for Authenticator app, Email code, and Text message, with the first preselected. With one available method, it opens directly to that method. When no enabled method is available, the sign-in screen tells the investor that no enabled two-factor method is available and to ask an organisation administrator to enable one, without opening the dialog.

  2. Request a code

    Select Email code to send the code to the account's email address, or Text message to send it to the stored verified phone number. Select Send code. Verify stays disabled until a code is sent.

  3. Enter and verify the code

    Type the six digits into 6-digit sign-in code and select Verify. A valid code opens the portal. A wrong code shows “Invalid code” and counts against the attempt limit, while a code older than five minutes shows “OTP has expired”.

    For email delivery, DALP includes the code in the message body and, on HTTPS or loopback origins, in an OTP-Token header bound to the sign-in URL so mail clients can offer autofill.

  4. Resend a code if needed

    After the 30-second cooldown finishes, select Resend code. Requesting a resend early returns 429 Too Many Requests with TWO_FACTOR_RESEND_THROTTLED. Each new code immediately invalidates any earlier code.

Code limits and lockouts

Rule
Value
Length
Six digits
Lifetime
Five minutes from send
Uses
One (accepted codes cannot be reused)
New send
Replaces and invalidates the previous code
Wait between sends
30 seconds
Wrong codes before a lock
Five within 15 minutes (the sixth attempt is refused)
Lock duration
15 minutes

Wrong email codes, text codes, authenticator codes, backup codes, and wrong codes sent while disabling two-factor authentication all share one attempt budget. Reusing an already accepted code counts as a wrong code.

The sixth wrong code in 15 minutes is rejected before verification with 429 Too Many Requests and LOGIN_TWO_FACTOR_LOCKED, along with the remaining seconds. A correct code cannot clear an active lock. Wait until the lock expires, then request a new code.

If concurrent verification requests already fill the remaining attempts, DALP rejects the extra request without checking or counting it, returning 429 Too Many Requests with LOGIN_TWO_FACTOR_LOCKED and a 2-second wait.

Organisation sign-in policy

DALP intersects policies across all active organisations an investor belongs to (archived organisations are ignored). If any one organisation omits email-otp or sms-otp, that method is removed for the member across the portal.

New organisations allow totp only. An organisation owner updates the policy from a signed-in session using POST /api/auth/organization/update (API keys are refused on this route). Pass allowedTwoFactorMethods as a JSON-encoded array of totp, email-otp, and sms-otp, plus an optional organizationId:

{ "data": { "allowedTwoFactorMethods": "[\"totp\",\"email-otp\"]" } }

An empty array or unknown method returns 400 Bad Request with INVALID_TWO_FACTOR_METHODS. Every saved policy change writes an entry to the organisation's Audit trail showing the methods before and after.

Error reference

HTTP status
Error code
Cause
Recovery action
403 Forbidden
TWO_FACTOR_METHOD_DISABLED
Organisation policy disallows the method, or the account cannot receive it.
Ask an organisation owner to enable the method, or choose another method.
403 Forbidden
TWO_FACTOR_METHOD_UNAVAILABLE
No policy-allowed method can be delivered to this account.
Have an organisation owner enable a deliverable method for the account.
400 Bad Request
TWO_FACTOR_METHOD_REQUIRED
The request omitted a method name.
Select a method before sending a code.
429 Too Many Requests
TWO_FACTOR_RESEND_THROTTLED
A code was requested within the past 30 seconds.
Wait the number of seconds returned in the response.
429 Too Many Requests
LOGIN_TWO_FACTOR_LOCKED
Five wrong codes in 15 minutes, or concurrent checks filled the remaining budget.
Wait the seconds returned in the response. Retry a short wait at once, or request a new code after a 15-minute lock.
503 Service Unavailable
TWO_FACTOR_DELIVERY_FAILED
The email or SMS provider rejected the send.
Resend immediately. DALP discards the undelivered code and lifts the 30-second cooldown.

Troubleshooting

The dialog offers only the authenticator app

At least one active organisation the investor belongs to disallows both code methods. Check every organisation membership, not only the active one. If text messages are allowed by policy, confirm the account also holds a verified phone number.

Verify returns Invalid code or OTP has expired

“Invalid code” indicates a wrong code or an older code invalidated by a resend, and it consumes one attempt. “OTP has expired” means the five-minute lifetime elapsed. Request a fresh code and enter the newest one. After five wrong codes, wait out the 15-minute lock reported in the response.

No email arrives

Verify the email address stored on the account, then select Resend code after 30 seconds. If the mail provider failed to accept the message, the API returns TWO_FACTOR_DELIVERY_FAILED, consumes no attempt, and lets you resend at once.

No text message arrives

SMS delivery requires both a verified phone number on the account and a configured SMS provider on the deployment. Unverified phone numbers are ignored and the method is not offered. Confirm phone number storage with your platform operator before offering SMS sign-in to investors.

The investor wants codes instead of an authenticator app

Enable two-factor authentication via POST /api/auth/two-factor/enable with the account password and method: "otp", and ensure every organisation the investor belongs to permits email-otp, sms-otp, or both. The Security screens in the Console and Investor portal manage authenticator apps and passkeys only.

Frequently asked questions

Is this the same two-factor authentication as the Console's Security page?

Yes for the authenticator app and passkeys. Both Security screens manage the same authenticator app and passkeys on the user account. Email and text message codes work on the Investor portal only and are enabled through the authentication API.

Does a sign-in code replace the password?

No. DALP verifies the password first and returns the two-factor challenge only after the password succeeds.

Can an investor turn off a policy-enabled method for their own account?

No. The dialog offers every method permitted by all of the investor's organisations that the account can receive. Only an organisation owner can change the allowed methods.

Can an investor who uses only email or text codes disable two-factor authentication?

Not on their own. POST /api/auth/two-factor/disable requires the password plus a current authenticator code or unused backup code. An account enabled only with email or text codes holds neither, so submitting a code returns 400 Bad Request with TWO_FACTOR_DISABLE_NO_AUTHENTICATOR (omitting a code returns TWO_FACTOR_DISABLE_CODE_REQUIRED).

Adding an authenticator app does not bypass this, because /two-factor/enable, /two-factor/verify-totp, and /two-factor/verify-backup-code all return TWO_FACTOR_ALREADY_ENABLED while two-factor is active. An Identity manager must reset the account's two-factor authentication instead.

Do sign-in codes work when the deployment uses single sign-on?

Yes. With an identity provider configured, Console sign-in routes through the provider, while the Investor portal keeps password sign-in and sign-in codes for investors. See Single sign-on.

Was this page helpful?