WordPress Plugin
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 by clicking a TowersID button in your header. This article walks through the configuration knobs available under Unidy → Auth.
1. 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 directly in the page flow at the shortcode position. 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.
2. 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.
- password: classic email + password login.
- magic-code: email a 4-digit code to sign in without a password.
- 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 setting controls the order of steps for the sign-up flow specifically.
3. Social providers
Enable Google and/or Apple 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.
The Apple button can be hidden per site even if the provider is enabled globally, useful for sites where Apple sign-in is not certified yet.
4. Trigger URL patterns
The overlay opens when the visitor clicks any link whose href matches a configured Trigger URL pattern. Defaults:
/login— opens the auth overlay
/logout— signs out
You can add site-specific patterns (for example, /anmelden, /mein-konto). Patterns support wildcards.
5. Container selector
The Container selector setting scopes the click interception to a specific part of your site. Default: .user-profile-container (the theme's header area). If your theme places the login link elsewhere, adjust the selector accordingly.
6. Text customization
Under Texts you can override every user-visible string in the overlay (button labels, placeholders, back-link text). Leave a field empty to keep the plugin default.
7. User menu items
The signed-in dropdown next to the avatar shows Mein Konto, Meine Tickets, and Newsletter by default. Add or remove entries under User menu items — each row is a label + URL pair. The icons are auto-matched by keyword (ticket, newsletter, profile, subscription, transaction).
8. Advanced: replace wp-login.php
Toggle Replace wp-login.php with the overlay to redirect WordPress' own login page to your Unidy overlay. Useful when Unidy is the primary identity system and you want to avoid the standard WP login form.
