Unidy Docs

Authentication Setup

Configure the sign-in overlay — modal vs panel, sign-in steps, providers, trigger URL patterns.

The Auth module renders a sign-in overlay that visitors trigger through a sign-in link or the user-menu shortcode. This article walks through the configuration knobs available under Unidy → Auth.

Render mode

Under Overlay style, choose how the sign-in surface appears:

  • Modal (default): A centered dialog with a dimmed backdrop. Best for landing pages and general-purpose sites.
  • Panel: A right-side slide-in drawer. Best for content-heavy pages where the visitor should keep their scroll position.
  • Inline: No overlay — the sign-in form renders in the trigger container. Best for dedicated login pages.

All three modes use the same form fields and validation; they only differ in how the surface enters and exits.

Sign-in and registration steps

The sign-in flow consists of a configurable sequence of steps. Under Sign-in steps you can enable or disable each one:

  • email: the first step, always required.
  • Email/password sign-in is part of the SDK sign-in surface; password is a registration-step option rather than a separate current Sign-in steps checkbox.
  • magic-code: email a sign-in code for passwordless login. Use the code length shown by your configured SDK flow.
  • passkey: offer passkey sign-in when supported and configured.
  • verification: email verification for new registrations.
  • registration: the sign-up form for new users.
  • reset-password: password reset via email.
  • missing-fields: collect required profile fields after the first login.

The Registration steps list configures the sign-up sequence: password, profile-password, verification, passkey, newsletter, and profile. Keep email in the sign-in flow; configure required fields and authentication methods on the instance as well.

Under Registration newsletter cards, select the cards shown in the newsletter step. An empty selection means all configured cards. Registration consent checkboxes add required key/text pairs to the final registration step. With none configured, the legal-hint text is used.

Social providers

Enable Google, Apple, and/or Facebook to add third-party sign-in buttons below the email/password form. Each provider needs to be configured on the Unidy instance side (client ID, redirect URLs) — the plugin only shows or hides the button.

Under Advanced → Trigger href patterns, enter one case-insensitive JavaScript regular expression per line. They match a link's href. For example:

text
/login(/|$)
/anmelden(/|$)
/mein-konto(/|$)

When no trigger option has been saved, the frontend fallback patterns match wp-login.php, /login, /anmelden, and /signin. The admin editor can have an empty saved list, so inspect and configure patterns for your site. /logout is not a sign-out trigger in this list; use the user menu's Abmelden action to sign out. The pattern syntax is regular expressions, so a shell-style wildcard is not interchangeable with .*.

Container selector defaults to .user-profile-container. Any link inside a matching container can also open Auth, independently of the href patterns. It does not narrow the href-pattern matches to that container. Avoid a broad selector covering unrelated navigation. To let one link navigate normally, use data-unidy="ignore"; data-unidy-skip="auth" skips Auth interception while allowing another module's pattern to handle it.

html
<a href="/anmelden">Sign in</a>
<a href="/help" data-unidy="ignore">Help</a>

Branding and texts

Under Branding, set the Header title, one-line Intro text, logo URL or WordPress media-library image, and logo alignment. Choose a light, dark, or near-black header variant and adjust its background and text/close-icon colors when needed. Branding carries across the module overlays.

Use an SVG or transparent PNG for the logo. The current header displays it at a maximum height of 56 pixels; paste an absolute image URL or choose an image from the media library.

Under Texts, override button labels, email/password placeholders, resend-code and passkey labels, password-reset and magic-code copy, verification and registration headings/hints, and the legal hint. Leave a field empty to retain the default. Error and success copy has its own message editor.

User menu items

The signed-in menu includes the profile link, configured extra rows such as Meine Tickets and Newsletter, and logout. Add or remove extra label + URL rows under User menu items. Icons are selected from keywords for tickets, newsletter, profile, subscription, and transaction. Labels and destinations can differ by site; see the shortcode attributes.

WordPress sessions

Choose Create WP user, Match existing WP users only, or Frontend only under WordPress session. See Enabling modules for the consequences of each choice.

Replace wp-login.php

Under Advanced, Replace wp-login.php with the overlay presents the Unidy sign-in surface on WordPress's login page. Enable it when Unidy is your primary identity system and verify the administrator sign-in route with your chosen session mode before launch.

Was this page helpful?