> For the complete documentation index, see [llms.txt](https://docs.thewalletcrew.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thewalletcrew.io/guides-enrolment/enrolment/enrolment-form/enable-email-check-in-on-enrolment-forms.md).

# Email check-in

Enable email check-in on enrolment forms to detect whether a customer already exists, then secure access with optional verification before a pass is issued.

Email check-in asks for the email address first and uses it to decide whether the customer is new or returning, so known customers get their existing pass instead of a duplicate profile. Depending on the check-in policy, the customer confirms the address before the existing profile and its pass are handed over.

<details>

<summary><strong>Real-world examples</strong></summary>

* A retailer runs an in-store QR campaign. Half the people who scan it are already in the loyalty program; email check-in returns their existing pass instead of creating a second one.
* A brand migrating from a plastic card scheme lets customers claim their existing account by email rather than re-registering from scratch.
* A program with high-value benefits sends a verification email on every check-in, so a mistyped or guessed address cannot surface someone else's balance.
* A campaign form asks only for an email address, and collects the remaining fields only when the address is new.

</details>

## How the journey branches

The form opens with a single email field. When the address is submitted, the check-in policy decides what happens next:

* **Full** (default): every customer, new or known, receives a verification email and continues from its link.
* **Partial**: only a known address receives the verification email. A new address continues straight to registration: the remaining fields are collected, a profile is created, and the pass is issued at the end of the flow.
* **None**: a known customer gets the existing pass without verification.
* **No identification**: no lookup is made. Every submission creates a new profile, so duplicates are possible.

The challenge is sent by email as a link that returns the customer to the form already authenticated. Once the challenge succeeds, the existing profile is reused and its pass is issued or re-issued, rather than a new record being created.

Identification is not consent: see [Privacy and consent](https://docs.thewalletcrew.io/guides-enrolment/enrolment/enrolment-form.md#privacy-and-consent).

## What has to be in place first

Email check-in depends on three things being configured on the tenant.

An **email provider** must be connected, because the challenge is delivered as an email. Any of the supported providers works; the relevant journey is the challenge email that authenticates a customer with a link. Without a provider, the check-in step can recognize a customer but cannot complete the challenge.

The **check-in policy** is set in **Settings → Enrollment → Enrollment security** (the `checkInSecurityMode` setting; its values are listed in [How the journey branches](#how-the-journey-branches)). The way a customer is challenged is declared in `accountChallengers` (type `email` or `sms`) in the tenant's account configuration.

The **enrolment form** must show the email-first step. Add the `preRegister` behavior to the form's **Advanced** tab, under `form.behaviors`. It adds a step at the beginning that checks whether a customer exists with that email before the full form is filled in.

```yaml
form:
  behaviors:
    - type: preRegister
```

{% hint style="warning" %}
Setting the check-in policy to **None** means a matched profile can be returned on the strength of an email address alone. Anyone who guesses or mistypes a customer's address then sees that customer's data. Treat any change to this setting as a security decision, not a conversion optimization.
{% endhint %}

## Customize the challenge email

The challenge email is a tenant email template, managed in **Settings → Enrollment → Emails** and named by `templateName` in the email account challenger. Programs that need to vary the message — a different template per campaign, per language, or per pass template — can do so with the `runtime.emailAccountChallenger.templateFinder` script hook, which selects the template to use at the moment the challenge is sent. See [Email challenge template](https://docs.thewalletcrew.io/developers-guides/scripting/endpoints/email-challenge-template.md).

Wording matters more here than elsewhere. A customer who asked for a loyalty card and receives an unexplained email is likely to ignore it, and the enrolment is lost at the last step. The message should name the brand and say what the link is for.

## Verify the setup

Test both branches before the form goes live, using two addresses that can actually receive mail.

With an address that is **not** in the customer base, complete the form and confirm that a new profile is created and a pass is issued. Under **Partial**, no challenge email is sent. Under **Full**, the challenge email is sent to new addresses too, and the form continues from its link.

With an address that **is** in the customer base, submit the form and confirm that the challenge email arrives, that the link works, and that the pass returned afterwards belongs to the existing profile rather than a newly created one. Check the customer list afterwards: a second profile for the same address means the check-in step did not run.

Finally, submit the recognized address and abandon the challenge. The existing profile must not be released, and no pass should be issued.

## Common pitfalls

A challenge email that lands in spam looks to the customer like a broken form. Sender reputation and authentication records on the sending domain matter as much as the form itself.

A customer base with duplicates already in it will not be deduplicated by enabling check-in. The step prevents new duplicates; it does not merge existing ones.

When social sign-in is also enabled on the form, the provider has usually verified the address already, so an additional email challenge tends to add friction without adding assurance. Keep both only where the program genuinely needs a second factor, such as before a high-value redemption.

## FAQ

<details>

<summary><strong>What happens if a customer never opens the challenge email?</strong></summary>

The flow does not complete and no pass is issued. The existing profile is left untouched. The customer can start the form again and request a new challenge.

</details>

<details>

<summary><strong>Which email address is matched against?</strong></summary>

The address stored on the customer profile. A customer who enrolled with one address and checks in with another is treated as a new customer, which is the usual reason a duplicate still appears after check-in is enabled.

</details>

<details>

<summary><strong>Does email check-in slow down enrolment?</strong></summary>

For a returning customer it adds one step: the verification email. The existing profile is then reused instead of a duplicate being created.

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.thewalletcrew.io/guides-enrolment/enrolment/enrolment-form/enable-email-check-in-on-enrolment-forms.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
