Below is a differential between the unpatched vulnerable code and the patched update, for reference.
--- a/listdom/LSD.php
+++ b/listdom/LSD.php
@@ -4,7 +4,7 @@
final class Listdom
{
- public string $version = '6.4.0';
+ public string $version = '6.5.0';
protected static ?Listdom $instance = null;
/**
@@ -98,6 +98,11 @@
// Repair Listdom roles when a site lost them after activation.
LSD_Roles::ensure();
+ // Shared Free account-security services.
+ (new LSD_Security())->init();
+ (new LSD_Auth())->init();
+ (new LSD_Notifications_Auth())->init();
+
// Life Cycle
$life_cycle = new LSD_LifeCycle();
$life_cycle->init();
@@ -202,6 +207,14 @@
// Dashboard
$dashboard = new LSD_Dashboard();
$dashboard->init();
+ add_action('admin_post_lsd_account_portal', [LSD_Portal::class, 'save']);
+ add_action('template_redirect', static function ()
+ {
+ if (LSD_Portal::current_page_key() !== '' || ((LSD_Base::isPro() || class_exists(LSDPACELMBase::class)) && LSD_Dashboard::is_dashboard()))
+ {
+ LSD_Portal::private_response();
+ }
+ });
// Launch Checklist
$checklist = LSD_Checklist::instance();
--- a/listdom/app/html/menus/dashboard/tabs/changelog.php
+++ b/listdom/app/html/menus/dashboard/tabs/changelog.php
@@ -3,6 +3,20 @@
defined('ABSPATH') || die();
?>
<div class="lsd-changelog-wrap">
+ <h2>v6.5.0 <span>November 21st, 2026</span></h2>
+ <ul class="lsd-changelog">
+ <li><?php esc_html_e('Added configurable account security with authenticator-based two-factor authentication, recovery codes, session management, email changes, and privacy requests.', 'listdom'); ?></li>
+ <li><?php esc_html_e('Added native Google, Yahoo, Apple, and Microsoft sign-in and registration.', 'listdom'); ?></li>
+ <li><?php esc_html_e('Added optional email sign-in links and passkeys for Listdom Pro.', 'listdom'); ?></li>
+ <li><?php esc_html_e('Added account page setup, an Account Overview dashboard, and a reversible Account Portal preset.', 'listdom'); ?></li>
+ <li><?php esc_html_e('Added shared registration and profile field layouts, profile privacy and directory role controls, and custom user fields for Listdom Pro.', 'listdom'); ?></li>
+ <li><?php esc_html_e('Added role and membership access controls for custom Listdom Pro dashboard tabs and protected portal content.', 'listdom'); ?></li>
+ <li><?php esc_html_e('Added WordPress Block Editor templates for single listings, listing cards, and map info windows, with sample listing previews.', 'listdom'); ?></li>
+ <li><?php esc_html_e('Improved settings backups to include AI profiles, user field layouts, and supported addon settings while protecting credentials.', 'listdom'); ?></li>
+ <li><?php esc_html_e('Improved authentication layouts, social sign-in button styling, settings navigation, confirmation dialogs, and getting-started guidance.', 'listdom'); ?></li>
+ <li><?php esc_html_e('Fixed password-reset links, empty-result pagination, listing submission permission notices, and Template Builder icons.', 'listdom'); ?></li>
+ <li><?php esc_html_e('Fixed access checks for user email suggestions and protected listing, checklist, and legacy template output against unsafe content.', 'listdom'); ?></li>
+ </ul>
<h2>v6.4.0 <span>November 1st, 2026</span></h2>
<ul class="lsd-changelog">
<li><?php esc_html_e('Added native WordPress abilities for listing search, contact, taxonomy management, and complete draft-to-publish listing workflows.', 'listdom'); ?></li>
--- a/listdom/app/html/menus/dashboard/tabs/dashboard.php
+++ b/listdom/app/html/menus/dashboard/tabs/dashboard.php
@@ -30,7 +30,7 @@
<div class="lsd-welcome-panel-container welcome-panel-column-container">
<div class="welcome-panel-column lsd-welcome-start">
<h3 class="lsd-m-0 lsd-admin-title"><?php esc_html_e('Start Your Directory Website', 'listdom'); ?></h3>
- <p class="lsd-m-0"><?php esc_html_e('Thanks for using Listdom. Listdom is a great plugin for creating directory and listing websites. With Listdom you can show the listings in different skins and views such as List, Grid, Half Map etc.', 'listdom') ?></p>
+ <p class="lsd-m-0"><?php esc_html_e('Build your directory with listings, search, and maps. Connect your first website to Webilia to get 20 free credits for importing up to 100 business listings as drafts, even with Listdom Free.', 'listdom'); ?></p>
<div class="lsd-get-start-section">
<a class="lsd-primary-button" href="<?php echo esc_url(admin_url('post-new.php?post_type=' . LSD_Base::PTYPE_LISTING)); ?>" target="_blank">
@@ -46,10 +46,11 @@
<div class="welcome-video">
<iframe width="640" height="360"
- src="https://www.youtube-nocookie.com/embed/du_96cv6BAw?rel=0&vq=hd1080"
- title="YouTube video player" frameborder="0"
+ src="https://www.youtube-nocookie.com/embed/_Jch4Zpa9_M?rel=0"
+ title="<?php esc_attr_e('Mark J Draper demonstrates Listdom, Claude and Business Data', 'listdom'); ?>" frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
+ <p class="lsd-admin-description"><?php esc_html_e('Walkthrough by Mark J Draper: directory setup, editing with Claude and Easy MCP, and importing business listings as drafts.', 'listdom'); ?></p>
</div>
</div>
@@ -104,10 +105,24 @@
<div class="lsd-icon-box">
<div class="lsd-admin-section-heading">
<h3 class="lsd-m-0 lsd-admin-title"><?php esc_html_e('Build the Essentials', 'listdom'); ?></h3>
- <p class="lsd-admin-description"><?php esc_html_e('Set up key features like search forms, login/register, and dashboards.', 'listdom'); ?></p>
+ <p class="lsd-admin-description"><?php esc_html_e('Set up search forms and dashboards. Connect your Webilia account to get full Stats and Analytics features for free, including with Listdom Free.', 'listdom'); ?></p>
</div>
<ul>
<li>
+ <a href="<?php echo esc_url(admin_url('admin.php?page=listdom-analytics')); ?>" class="lsd-text-button">
+ <i class="wui-icon wui-icon--chart-increase"></i>
+ <?php esc_html_e('Open Analytics', 'listdom'); ?>
+ </a>
+ </li>
+ <?php if (LSD_Webilia_Connect::enabled()): ?>
+ <li>
+ <a href="<?php echo esc_url(admin_url('admin.php?page=listdom-ix&tab=business-data')); ?>" class="lsd-text-button">
+ <i class="wui-icon wui-icon--database"></i>
+ <?php esc_html_e('Find and Import Business Data', 'listdom'); ?>
+ </a>
+ </li>
+ <?php endif; ?>
+ <li>
<a href="<?php echo esc_url(admin_url('post-new.php?post_type=' . LSD_Base::PTYPE_SEARCH)); ?>" class="lsd-text-button">
<i class="wui-icon wui-icon--search-area"></i>
<?php esc_html_e('Create a Search & Filter Form', 'listdom'); ?>
@@ -120,7 +135,7 @@
</a>
</li>
<li>
- <a href="<?php echo esc_url(admin_url('admin.php?page=listdom-settings&tab=auth')); ?>" class="lsd-text-button">
+ <a href="<?php echo esc_url(LSD_Portal::admin_url('account-setup', 'pages')); ?>" class="lsd-text-button">
<i class="wui-icon wui-icon--login-method"></i>
<?php esc_html_e('Authentication Page', 'listdom'); ?>
</a>
@@ -132,7 +147,7 @@
</a>
</li>
<li>
- <a href="<?php echo esc_url(admin_url('admin.php?page=listdom-settings&tab=auth&subtab=profile')); ?>" class="lsd-text-button">
+ <a href="<?php echo esc_url(LSD_Portal::admin_url('profiles-directory', 'profiles')); ?>" class="lsd-text-button">
<i class="wui-icon wui-icon--user-circle"></i>
<?php esc_html_e('Author Profile', 'listdom'); ?>
</a>
--- a/listdom/app/html/menus/settings/tabs.php
+++ b/listdom/app/html/menus/settings/tabs.php
@@ -86,13 +86,9 @@
<?php esc_html_e('Users', 'listdom'); ?>
</a>
<ul data-parent="auth" class="lsd-nav-sub-tabs lsd-tabs">
- <li class="lsd-nav-tab <?php echo $this->tab === 'auth' && ($this->subtab === 'authentication' || !$this->subtab) ? 'lsd-nav-tab-active' : ''; ?>" data-key="authentication"><?php esc_html_e('Authentication', 'listdom'); ?></li>
- <li class="lsd-nav-tab <?php echo $this->tab === 'auth' && $this->subtab === 'login' ? 'lsd-nav-tab-active' : ''; ?>" data-key="login"><?php esc_html_e('Login', 'listdom'); ?></li>
- <li class="lsd-nav-tab <?php echo $this->tab === 'auth' && $this->subtab === 'register' ? 'lsd-nav-tab-active' : ''; ?>" data-key="register"><?php esc_html_e('Register', 'listdom'); ?></li>
- <li class="lsd-nav-tab <?php echo $this->tab === 'auth' && $this->subtab === 'forgot-password' ? 'lsd-nav-tab-active' : ''; ?>" data-key="forgot-password"><?php esc_html_e('Forgot Password', 'listdom'); ?></li>
- <li class="lsd-nav-tab <?php echo $this->tab === 'auth' && ($this->subtab === 'profile-user-directory' || $this->subtab === 'public-profile' || $this->subtab === 'edit-profile' || $this->subtab === 'user-directory') ? 'lsd-nav-tab-active' : ''; ?>" data-key="profile-user-directory"><?php esc_html_e('Profile & User Directory', 'listdom'); ?></li>
- <li class="lsd-nav-tab <?php echo $this->tab === 'auth' && $this->subtab === 'logged-in-users' ? 'lsd-nav-tab-active' : ''; ?>" data-key="logged-in-users"><?php esc_html_e('Logged In Users', 'listdom'); ?></li>
- <li class="lsd-nav-tab <?php echo $this->tab === 'auth' && $this->subtab === 'block-admin-access' ? 'lsd-nav-tab-active' : ''; ?>" data-key="block-admin-access"><?php esc_html_e('Block Admin Access', 'listdom'); ?></li>
+ <?php foreach (LSD_Portal::admin_tabs() as $key => $user_tab): ?>
+ <li class="lsd-nav-tab <?php echo $this->tab === 'auth' && $this->subtab === $key ? 'lsd-nav-tab-active' : ''; ?>" data-key="<?php echo esc_attr($key); ?>"><?php echo esc_html($user_tab['label']); ?></li>
+ <?php endforeach; ?>
</ul>
</li>
<li class="lsd-has-children lsd-single-listing-nav <?php echo $this->tab === 'single-listing' ? ' lsd-nav-expanded' : ''; ?>">
--- a/listdom/app/html/menus/settings/tabs/advanced.php
+++ b/listdom/app/html/menus/settings/tabs/advanced.php
@@ -477,7 +477,7 @@
<div class="lsd-box-white">
<div class="lsd-admin-section-heading">
<h4 class="lsd-admin-title"><?php esc_html_e('Import', 'listdom'); ?></h4>
- <p class="lsd-admin-description lsd-m-0"><?php esc_html_e("Simply restore a backup using the exported JSON file.", 'listdom'); ?></p>
+ <p class="lsd-admin-description lsd-m-0"><?php esc_html_e('Restore settings from a Listdom JSON backup.', 'listdom'); ?></p>
</div>
<form class="lsd-settings-fields-sub-wrapper" id="lsd_import_settings_form" enctype="multipart/form-data" method="post">
<div class="lsd-admin-input-file">
@@ -490,7 +490,7 @@
<label for="lsd_settings_file" class="lsd-neutral-button lsd-csv-import-choose-file lsd-w-max"><?php echo esc_html__('Choose File', 'listdom'); ?></label>
<p class="lsd-text-red lsd-admin-description-tiny lsd-m-0"><?php echo sprintf(
/* translators: %s: Highlighted caution label. */
- esc_html__('%s: This will overwrite all existing configurations.', 'listdom'),
+ esc_html__('%s: Imported settings can overwrite existing settings.', 'listdom'),
'<strong class="lsd-text-uppercase">'.esc_html__('Caution', 'listdom').'</strong>'
); ?></p>
</div>
@@ -504,7 +504,7 @@
<div class="lsd-box-white">
<div class="lsd-admin-section-heading">
<h4 class="lsd-my-0 lsd-admin-title"><?php esc_html_e('Export', 'listdom'); ?></h4>
- <p class="lsd-admin-description lsd-m-0"><?php esc_html_e("You can export all Listdom settings in JSON format to create a backup or import them to another website.", 'listdom'); ?></p>
+ <p class="lsd-admin-description lsd-m-0"><?php esc_html_e('Download a JSON backup of your Listdom settings. API keys, tokens, and other credentials are excluded.', 'listdom'); ?></p>
</div>
<a class="lsd-secondary-button" href="<?php echo esc_url(LSD_IX_Settings::get_export_url()); ?>"><?php esc_html_e('Export', 'listdom'); ?></a>
</div>
@@ -637,14 +637,21 @@
dataType: 'json',
processData: false,
contentType: false,
- success: function () {
+ success: function (response)
+ {
+ loading.stop();
- listdom_notify("<?php echo esc_js(esc_html__('Options imported successfully.', 'listdom')); ?>", 'lsd-success');
+ if (!response || response.success !== 1)
+ {
+ const message = response && response.message ? response.message : "<?php echo esc_js(esc_html__('Error: Unable to import options.', 'listdom')); ?>";
+ listdom_notify(message, 'lsd-error');
+ return;
+ }
- // Unloading
- loading.stop();
+ listdom_notify("<?php echo esc_js(esc_html__('Options imported successfully.', 'listdom')); ?>", 'lsd-success');
- setTimeout(function () {
+ setTimeout(function ()
+ {
window.location.reload();
}, 2000);
},
--- a/listdom/app/html/menus/settings/tabs/auth-abuse-protection.php
+++ b/listdom/app/html/menus/settings/tabs/auth-abuse-protection.php
@@ -0,0 +1,26 @@
+<?php
+defined('ABSPATH') || die();
+?>
+<div class="lsd-settings-fields-wrapper">
+ <h3 class="lsd-admin-title"><?php esc_html_e('Abuse Protection', 'listdom'); ?></h3>
+ <?php $row('lsd_security_rate_enabled', __('Rate Limiting', 'listdom'), LSD_Form::switcher([
+ 'id' => 'lsd_security_rate_enabled',
+ 'name' => 'lsd[security][rate_enabled]',
+ 'value' => $security['rate_enabled'],
+ 'toggle' => '#lsd_security_rate_fields, #lsd_security_totp_rate_fields',
+ ]), __('Limits use expiring keyed hashes of network addresses and account identifiers. Forwarded IP headers are not trusted automatically.', 'listdom')); ?>
+ <div id="lsd_security_rate_fields" class="<?php echo empty($security['rate_enabled']) ? 'lsd-util-hide' : ''; ?>">
+ <div class="lsd-settings-fields-sub-wrapper">
+ <?php foreach ([
+ 'login_pair_limit' => [__('Account Login Limit', 'listdom'), __('Maximum failed logins for the same account and IP address within 15 minutes.', 'listdom')],
+ 'login_ip_limit' => [__('IP Login Limit', 'listdom'), __('Maximum failed logins from one IP address within 15 minutes, across all accounts.', 'listdom')],
+ 'register_limit' => [__('Registration Limit', 'listdom'), __('Maximum public registration attempts from one IP address per hour.', 'listdom')],
+ 'mail_ip_limit' => [__('Recovery IP Limit', 'listdom'), __('Maximum requests from one IP address per hour, counted separately for each recovery or verification-resend action.', 'listdom')],
+ 'mail_identifier_limit' => [__('Identifier Limit', 'listdom'), __('Maximum requests for the same email address or login per hour, counted separately for each recovery or verification-resend action.', 'listdom')],
+ 'resend_cooldown' => [__('Resend Cooldown', 'listdom'), __('Minimum wait in seconds before repeating a recovery or verification-resend request for the same identifier.', 'listdom')],
+ ] as $key => [$label, $description]): ?>
+ <?php $row('lsd_security_' . $key, $label, LSD_Form::number(['class' => 'lsd-admin-input', 'id' => 'lsd_security_' . $key, 'name' => 'lsd[security][' . $key . ']', 'value' => $security[$key], 'min' => 1, 'max' => 3600]), $description); ?>
+ <?php endforeach; ?>
+ </div>
+ </div>
+</div>
--- a/listdom/app/html/menus/settings/tabs/auth-admin-access.php
+++ b/listdom/app/html/menus/settings/tabs/auth-admin-access.php
@@ -0,0 +1,22 @@
+<?php
+defined('ABSPATH') || die();
+?>
+<div class="lsd-settings-fields-wrapper">
+ <h3 class="lsd-admin-title lsd-m-0"><?php esc_html_e('Block Admin Access', 'listdom'); ?></h3>
+ <p class="lsd-admin-description lsd-m-0"><?php esc_html_e('You can block WordPress admin access for the following user roles, if needed. Check to block access, or uncheck to allow it.', 'listdom'); ?></p>
+
+ <?php foreach (LSD_Roles::supported() as $role => $label): ?>
+ <div class="lsd-form-row lsd-my-0">
+ <div class="lsd-col-3"><?php echo LSD_Form::label([
+ 'class' => 'lsd-fields-label',
+ 'for' => 'lsd_block_admin_role_'. $role,
+ 'title' => $label
+ ]); ?></div>
+ <div class="lsd-col-9"><?php echo LSD_Form::switcher([
+ 'id' => 'lsd_block_admin_role_'. $role,
+ 'name' => 'settings[block_admin_'. $role.']',
+ 'value' => $settings['block_admin_'. $role] ?? 1
+ ]); ?></div>
+ </div>
+ <?php endforeach; ?>
+</div>
--- a/listdom/app/html/menus/settings/tabs/auth-directory.php
+++ b/listdom/app/html/menus/settings/tabs/auth-directory.php
@@ -0,0 +1,28 @@
+<?php
+defined('ABSPATH') || die();
+?>
+<p class="lsd-admin-description"><?php esc_html_e('The directory follows the profile visibility setting. Private profiles hide the user directory.', 'listdom'); ?> <a href="<?php echo esc_url(LSD_Portal::admin_url('profiles-directory', 'profiles')); ?>"><?php esc_html_e('Manage profile visibility', 'listdom'); ?></a></p>
+ <div class="lsd-settings-fields-wrapper">
+ <p class="lsd-admin-description lsd-m-0"><?php echo sprintf(
+ /* translators: %s: Users shortcode. */
+ esc_html__("Insert the %s shortcode on any page to display a user directory. Only users with the selected roles appear, including accounts without listings. The shortcode supports both List and Grid styles. Feel free to use one of the following shortcodes:", 'listdom'),
+ '<code>[listdom-users]</code>'
+ ); ?></p>
+ <ul class="lsd-m-0">
+ <li>[listdom-users style="list" limit="24"]</li>
+ <li>[listdom-users style="grid" limit="12" columns="3"]</li>
+ </ul>
+ <fieldset class="lsd-field-group">
+ <legend class="lsd-fields-label"><?php esc_html_e('Directory roles', 'listdom'); ?></legend>
+ <input type="hidden" name="lsd[profile][directory_roles][]" value="">
+ <div class="lsd-user-field-role-list">
+ <?php foreach (LSD_Dashboard_Access::role_options() as $role => $role_name): ?>
+ <label class="lsd-fields-label lsd-user-field-checkbox">
+ <input type="checkbox" name="lsd[profile][directory_roles][]" value="<?php echo esc_attr($role); ?>" <?php checked(in_array($role, LSD_Portal::directory_roles(), true)); ?>>
+ <span><?php echo esc_html(translate_user_role($role_name)); ?></span>
+ </label>
+ <?php endforeach; ?>
+ </div>
+ <p class="lsd-admin-description-tiny"><?php esc_html_e('Ordinary customer accounts are excluded until you select their roles. Selecting no roles hides all directory entries. Public profile and field visibility settings still apply.', 'listdom'); ?></p>
+ </fieldset>
+</div>
--- a/listdom/app/html/menus/settings/tabs/auth-full.php
+++ b/listdom/app/html/menus/settings/tabs/auth-full.php
@@ -0,0 +1,188 @@
+<?php
+defined('ABSPATH') || die();
+?>
+<div class="lsd-settings-fields-wrapper">
+ <h3 class="lsd-admin-title"><?php esc_html_e('Shortcode & Usage', 'listdom'); ?></h3>
+ <p class="lsd-admin-description lsd-m-0"><?php echo sprintf(
+ /* translators: %s: Authentication shortcode. */
+ esc_html__('Insert the %s shortcode into any page to display a full login, register, and forgot password form.', 'listdom'),
+ '<code>[listdom-auth]</code>'
+ ); ?></p>
+ <div class="lsd-alert lsd-info lsd-my-0">
+ <?php echo esc_html__('You can restrict the login and register forms to a specific role using the role parameter (subscriber, contributor, listdom_author or listdom_publisher). Example:', 'listdom'); ?>
+ <strong>[listdom-auth role="listdom_author"]</strong>
+ </div>
+</div>
+<div class="lsd-settings-fields-wrapper">
+ <h3 class="lsd-admin-title"><?php esc_html_e('Forms & Switcher', 'listdom'); ?></h3>
+ <div class="lsd-form-row">
+ <div class="lsd-col-3"><?php echo LSD_Form::label([
+ 'class' => 'lsd-fields-label',
+ 'title' => esc_html__('Form Switcher', 'listdom'),
+ 'for' => 'lsd_auth_switch_style',
+ ]); ?></div>
+ <div class="lsd-col-5">
+ <?php echo LSD_Form::select([
+ 'class' => 'lsd-admin-input',
+ 'id' => 'lsd_auth_switch_style',
+ 'name' => 'lsd[auth][switch_style]',
+ 'options' => [
+ 'both' => esc_html__('Links & Tabs', 'listdom'),
+ 'tabs' => esc_html__('Tabs', 'listdom'),
+ 'links' => esc_html__('Links', 'listdom'),
+ ],
+ 'value' => $auth['auth']['switch_style'],
+ ]); ?>
+ </div>
+ </div>
+
+ <div class="lsd-form-row">
+ <div class="lsd-col-3"><?php echo LSD_Form::label([
+ 'class' => 'lsd-fields-label',
+ 'title' => esc_html__('Hide Login', 'listdom'),
+ 'for' => 'lsd_auth_hide_login_form',
+ ]); ?></div>
+ <div class="lsd-col-5">
+ <?php echo LSD_Form::switcher([
+ 'id' => 'lsd_auth_hide_login_form',
+ 'name' => 'lsd[auth][hide_login_form]',
+ 'value' => $auth['auth']['hide_login_form'],
+ 'toggle' => '#lsd-login-default-form'
+ ]); ?>
+ </div>
+ </div>
+ <div class="lsd-form-row">
+ <div class="lsd-col-3"><?php echo LSD_Form::label([
+ 'class' => 'lsd-fields-label',
+ 'title' => esc_html__('Hide Register', 'listdom'),
+ 'for' => 'lsd_auth_hide_register_form',
+ ]); ?></div>
+ <div class="lsd-col-5">
+ <?php echo LSD_Form::switcher([
+ 'id' => 'lsd_auth_hide_register_form',
+ 'name' => 'lsd[auth][hide_register_form]',
+ 'value' => $auth['auth']['hide_register_form'],
+ 'toggle' => '#lsd-register-default-form'
+ ]); ?>
+ </div>
+ </div>
+ <div class="lsd-form-row">
+ <div class="lsd-col-3"><?php echo LSD_Form::label([
+ 'class' => 'lsd-fields-label',
+ 'title' => esc_html__('Hide Forgot Password', 'listdom'),
+ 'for' => 'lsd_auth_hide_forgot_password_form',
+ ]); ?></div>
+ <div class="lsd-col-5">
+ <?php echo LSD_Form::switcher([
+ 'id' => 'lsd_auth_hide_forgot_password_form',
+ 'name' => 'lsd[auth][hide_forgot_password_form]',
+ 'value' => $auth['auth']['hide_forgot_password_form'],
+ 'toggle' => '#lsd-forgot-password-default-form'
+ ]); ?>
+ </div>
+ </div>
+</div>
+<div class="lsd-settings-fields-wrapper">
+ <h3 class="lsd-admin-title"><?php esc_html_e('Tab Labels', 'listdom'); ?></h3>
+ <div id="lsd-tabs-labels">
+ <div class="lsd-form-row">
+ <div class="lsd-col-3"><?php echo LSD_Form::label([
+ 'class' => 'lsd-fields-label',
+ 'title' => esc_html__('Login Tab', 'listdom'),
+ 'for' => 'lsd_auth_login_tab_label',
+ ]); ?></div>
+ <div class="lsd-col-5">
+ <?php echo LSD_Form::text([
+ 'class' => 'lsd-admin-input',
+ 'id' => 'lsd_auth_login_tab_label',
+ 'name' => 'lsd[auth][login_tab_label]',
+ 'value' => $auth['auth']['login_tab_label']
+ ]); ?>
+ </div>
+ </div>
+
+ <div class="lsd-form-row">
+ <div class="lsd-col-3"><?php echo LSD_Form::label([
+ 'class' => 'lsd-fields-label',
+ 'title' => esc_html__('Register Tab', 'listdom'),
+ 'for' => 'lsd_auth_register_tab_label',
+ ]); ?></div>
+ <div class="lsd-col-5">
+ <?php echo LSD_Form::text([
+ 'class' => 'lsd-admin-input',
+ 'id' => 'lsd_auth_register_tab_label',
+ 'name' => 'lsd[auth][register_tab_label]',
+ 'value' => $auth['auth']['register_tab_label']
+ ]); ?>
+ </div>
+ </div>
+
+ <div class="lsd-form-row">
+ <div class="lsd-col-3"><?php echo LSD_Form::label([
+ 'class' => 'lsd-fields-label',
+ 'title' => esc_html__('Forgot Password Tab', 'listdom'),
+ 'for' => 'lsd_auth_forgot_password_tab_label',
+ ]); ?></div>
+ <div class="lsd-col-5">
+ <?php echo LSD_Form::text([
+ 'class' => 'lsd-admin-input',
+ 'id' => 'lsd_auth_forgot_password_tab_label',
+ 'name' => 'lsd[auth][forgot_password_tab_label]',
+ 'value' => $auth['auth']['forgot_password_tab_label']
+ ]); ?>
+ </div>
+ </div>
+ </div>
+</div>
+<div class="lsd-settings-fields-wrapper">
+ <h3 class="lsd-admin-title"><?php esc_html_e('Link Labels', 'listdom'); ?></h3>
+ <div id="lsd-links-labels">
+ <div class="lsd-form-row">
+ <div class="lsd-col-3"><?php echo LSD_Form::label([
+ 'class' => 'lsd-fields-label',
+ 'title' => esc_html__('Login Link', 'listdom'),
+ 'for' => 'lsd_auth_login_link_label',
+ ]); ?></div>
+ <div class="lsd-col-5">
+ <?php echo LSD_Form::text([
+ 'class' => 'lsd-admin-input',
+ 'id' => 'lsd_auth_login_link_label',
+ 'name' => 'lsd[auth][login_link_label]',
+ 'value' => $auth['auth']['login_link_label'],
+ ]); ?>
+ </div>
+ </div>
+
+ <div class="lsd-form-row">
+ <div class="lsd-col-3"><?php echo LSD_Form::label([
+ 'class' => 'lsd-fields-label',
+ 'title' => esc_html__('Register Link', 'listdom'),
+ 'for' => 'lsd_auth_register_link_label',
+ ]); ?></div>
+ <div class="lsd-col-5">
+ <?php echo LSD_Form::text([
+ 'class' => 'lsd-admin-input',
+ 'id' => 'lsd_auth_register_link_label',
+ 'name' => 'lsd[auth][register_link_label]',
+ 'value' => $auth['auth']['register_link_label'],
+ ]); ?>
+ </div>
+ </div>
+
+ <div class="lsd-form-row">
+ <div class="lsd-col-3"><?php echo LSD_Form::label([
+ 'class' => 'lsd-fields-label',
+ 'title' => esc_html__('Forgot Password Link', 'listdom'),
+ 'for' => 'lsd_auth_forgot_password_link_label',
+ ]); ?></div>
+ <div class="lsd-col-5">
+ <?php echo LSD_Form::text([
+ 'class' => 'lsd-admin-input',
+ 'id' => 'lsd_auth_forgot_password_link_label',
+ 'name' => 'lsd[auth][forgot_password_link_label]',
+ 'value' => $auth['auth']['forgot_password_link_label']
+ ]); ?>
+ </div>
+ </div>
+ </div>
+</div>
--- a/listdom/app/html/menus/settings/tabs/auth-login.php
+++ b/listdom/app/html/menus/settings/tabs/auth-login.php
@@ -0,0 +1,168 @@
+<?php
+defined('ABSPATH') || die();
+?>
+<p class="lsd-admin-description lsd-my-0"><?php echo sprintf(
+ /* translators: %s: Login shortcode. */
+ esc_html__('Insert the %s shortcode into any page to display a login form.', 'listdom'),
+ '<code>[listdom-login]</code>'
+); ?></p>
+<div class="lsd-alert lsd-info lsd-my-0">
+ <?php echo esc_html__('You can restrict the login form to a specific role using the role parameter (subscriber, contributor, listdom_author or listdom_publisher). Example:', 'listdom'); ?>
+ <strong>[listdom-login role="listdom_author"]</strong>
+</div>
+<div class="lsd-settings-fields-wrapper">
+ <h3 class="lsd-admin-title"><?php esc_html_e('Redirect', 'listdom'); ?></h3>
+ <div class="lsd-form-row">
+ <div class="lsd-col-3"><?php echo LSD_Form::label([
+ 'class' => 'lsd-fields-label',
+ 'title' => esc_html__('After Login Redirect Page', 'listdom'),
+ 'for' => 'lsd_auth_login_redirect',
+ ]); ?></div>
+ <div class="lsd-col-5">
+ <?php echo LSD_Form::pages([
+ 'class' => 'lsd-admin-input',
+ 'id' => 'lsd_auth_login_redirect',
+ 'name' => 'lsd[login][redirect]',
+ 'value' => $auth['login']['redirect']
+ ]); ?>
+ <p class="lsd-admin-description-tiny lsd-mb-0 lsd-mt-2"><?php esc_html_e("After the user logs in, they will be redirected to the designated page.", 'listdom'); ?></p>
+ </div>
+ </div>
+
+ <h3 class="lsd-admin-title"><?php esc_html_e('Redirection Per User Role', 'listdom'); ?></h3>
+ <?php foreach (LSD_Roles::supported() as $role => $label): ?>
+ <div class="lsd-form-row">
+ <div class="lsd-col-3"><?php echo LSD_Form::label([
+ 'class' => 'lsd-fields-label',
+ 'for' => 'lsd_auth_login_redirect_role_'. $role,
+ 'title' => $label
+ ]); ?></div>
+ <div class="lsd-col-5"><?php echo LSD_Form::switcher([
+ 'id' => 'lsd_auth_login_redirect_role_'. $role,
+ 'name' => 'lsd[login][redirect_'. $role.']',
+ 'value' => $auth['login']['redirect_'. $role],
+ 'toggle' => '#lsd-auth-login-redirect-page-' . esc_attr($role) . '-content',
+ ]); ?></div>
+ </div>
+ <div class="lsd-form-row <?php echo ($auth['login']['redirect_'. $role]) == 0 ? 'lsd-util-hide' : ''; ?>" id="<?php echo esc_attr('lsd-auth-login-redirect-page-' . esc_attr($role) . '-content'); ?>" >
+ <div class="lsd-col-3"><?php echo LSD_Form::label([
+ 'class' => 'lsd-fields-label',
+ 'title' => esc_html__('Redirect Page', 'listdom'),
+ 'for' => 'lsd_auth_login_redirect_' . $role,
+ ]); ?></div>
+ <div class="lsd-col-5">
+ <?php echo LSD_Form::pages([
+ 'class' => 'lsd-admin-input',
+ 'id' => 'lsd_auth_login_redirect_' . $role,
+ 'name' => 'lsd[login]['. $role .'][redirect]',
+ 'value' => $auth['login'][$role]['redirect'] ?? $auth['login']['redirect'],
+ ]); ?>
+ <p class="lsd-admin-description-tiny lsd-mb-0 lsd-mt-2"><?php echo sprintf(
+ /* translators: %s: User role label. */
+ esc_html__("After logging in, the %s user will be redirected to the designated page.", 'listdom'),
+ '<strong>'.$label.'</strong>'
+); ?></p>
+ </div>
+ </div>
+ <?php endforeach; ?>
+</div>
+<div class="lsd-settings-fields-wrapper">
+ <h3 class="lsd-admin-title"><?php esc_html_e('Labels', 'listdom'); ?></h3>
+ <div class="lsd-form-row">
+ <div class="lsd-col-3"><?php echo LSD_Form::label([
+ 'class' => 'lsd-fields-label',
+ 'title' => esc_html__('Username', 'listdom'),
+ 'for' => 'lsd_auth_login_username_label',
+ ]); ?></div>
+ <div class="lsd-col-5">
+ <?php echo LSD_Form::text([
+ 'class' => 'lsd-admin-input',
+ 'id' => 'lsd_auth_login_username_label',
+ 'name' => 'lsd[login][username_label]',
+ 'value' => $auth['login']['username_label']
+ ]); ?>
+ </div>
+ </div>
+
+ <div class="lsd-form-row">
+ <div class="lsd-col-3"><?php echo LSD_Form::label([
+ 'class' => 'lsd-fields-label',
+ 'title' => esc_html__('Password', 'listdom'),
+ 'for' => 'lsd_auth_login_password_label',
+ ]); ?></div>
+ <div class="lsd-col-5">
+ <?php echo LSD_Form::text([
+ 'class' => 'lsd-admin-input',
+ 'id' => 'lsd_auth_login_password_label',
+ 'name' => 'lsd[login][password_label]',
+ 'value' => $auth['login']['password_label']
+ ]); ?>
+ </div>
+ </div>
+
+ <div class="lsd-form-row">
+ <div class="lsd-col-3"><?php echo LSD_Form::label([
+ 'class' => 'lsd-fields-label',
+ 'title' => esc_html__('Remember me', 'listdom'),
+ 'for' => 'lsd_auth_login_remember_label',
+ ]); ?></div>
+ <div class="lsd-col-5">
+ <?php echo LSD_Form::text([
+ 'class' => 'lsd-admin-input',
+ 'id' => 'lsd_auth_login_remember_label',
+ 'name' => 'lsd[login][remember_label]',
+ 'value' => $auth['login']['remember_label']
+ ]); ?>
+ </div>
+ </div>
+
+ <div class="lsd-form-row">
+ <div class="lsd-col-3"><?php echo LSD_Form::label([
+ 'class' => 'lsd-fields-label',
+ 'title' => esc_html__('Button', 'listdom'),
+ 'for' => 'lsd_auth_login_submit_label',
+ ]); ?></div>
+ <div class="lsd-col-5">
+ <?php echo LSD_Form::text([
+ 'class' => 'lsd-admin-input',
+ 'id' => 'lsd_auth_login_submit_label',
+ 'name' => 'lsd[login][submit_label]',
+ 'value' => $auth['login']['submit_label']
+ ]); ?>
+ </div>
+ </div>
+</div>
+<div class="lsd-settings-fields-wrapper">
+ <h3 class="lsd-admin-title"><?php esc_html_e('Placeholders', 'listdom'); ?></h3>
+ <div class="lsd-form-row">
+ <div class="lsd-col-3"><?php echo LSD_Form::label([
+ 'class' => 'lsd-fields-label',
+ 'title' => esc_html__('Username', 'listdom'),
+ 'for' => 'lsd_auth_login_username_placeholder',
+ ]); ?></div>
+ <div class="lsd-col-5">
+ <?php echo LSD_Form::text([
+ 'class' => 'lsd-admin-input',
+ 'id' => 'lsd_auth_login_username_placeholder',
+ 'name' => 'lsd[login][username_placeholder]',
+ 'value' => $auth['login']['username_placeholder']
+ ]); ?>
+ </div>
+ </div>
+
+ <div class="lsd-form-row">
+ <div class="lsd-col-3"><?php echo LSD_Form::label([
+ 'class' => 'lsd-fields-label',
+ 'title' => esc_html__('Password', 'listdom'),
+ 'for' => 'lsd_auth_login_password_placeholder',
+ ]); ?></div>
+ <div class="lsd-col-5">
+ <?php echo LSD_Form::text([
+ 'class' => 'lsd-admin-input',
+ 'id' => 'lsd_auth_login_password_placeholder',
+ 'name' => 'lsd[login][password_placeholder]',
+ 'value' => $auth['login']['password_placeholder']
+ ]); ?>
+ </div>
+ </div>
+</div>
--- a/listdom/app/html/menus/settings/tabs/auth-page-setup.php
+++ b/listdom/app/html/menus/settings/tabs/auth-page-setup.php
@@ -0,0 +1,55 @@
+<?php
+defined('ABSPATH') || die();
+
+$plan = LSD_Portal::setup_plan();
+$definitions = LSD_Portal::definitions();
+$status = isset($_GET['portal_status']) && is_string($_GET['portal_status']) ? sanitize_key($_GET['portal_status']) : '';
+?>
+<div class="lsd-settings-fields-wrapper">
+ <h3 class="lsd-admin-title"><?php esc_html_e('Account Portal Preset', 'listdom'); ?></h3>
+ <p class="lsd-admin-description"><?php esc_html_e('Use Listdom for user accounts without listings. This preset fills empty page assignments, enables Account Overview, Profile Settings with account security, and Logout, disables Dashboard and Add Listing, and makes profiles and the user directory private. It does not change registration policy or site-wide login redirects.', 'listdom'); ?></p>
+ <?php if (get_option('lsd_account_portal_preset')): ?>
+ <p class="lsd-admin-description"><?php esc_html_e('The preset has been applied. Restore the previous configuration to undo its settings. Changes you made afterward and created pages are kept.', 'listdom'); ?></p>
+ <button type="submit" form="lsd_account_page_setup" name="portal_operation" value="restore" class="lsd-secondary-button"><?php esc_html_e('Restore Previous Configuration', 'listdom'); ?></button>
+ <?php else: ?>
+ <button type="submit" form="lsd_account_page_setup" name="portal_operation" value="apply" class="lsd-secondary-button"><?php esc_html_e('Apply Account Portal Preset', 'listdom'); ?></button>
+ <?php endif; ?>
+ <?php if ($status === 'preset-applied'): ?>
+ <p class="lsd-alert lsd-success"><?php esc_html_e('Account Portal preset applied. Review the pages below. Enable registration under Login & Registration if your site needs public sign-ups.', 'listdom'); ?></p>
+ <?php elseif (in_array($status, ['preset-restored', 'preset-restored-changed'], true)): ?>
+ <p class="lsd-alert lsd-success"><?php esc_html_e('Previous configuration restored. Settings changed since applying the preset and created pages were kept.', 'listdom'); ?></p>
+ <?php endif; ?>
+</div>
+<div class="lsd-settings-fields-wrapper">
+ <h3 class="lsd-admin-title"><?php esc_html_e('Set Up Account Pages', 'listdom'); ?></h3>
+ <p class="lsd-admin-description"><?php esc_html_e('Use your saved pages and fill empty assignments. Missing authentication pages can share one page. Creating pages does not turn on site-wide redirects.', 'listdom'); ?></p>
+ <?php if ($status === 'saved'): ?>
+ <p class="lsd-alert lsd-success"><?php esc_html_e('Account page setup complete.', 'listdom'); ?></p>
+ <?php elseif ($status === 'incomplete'): ?>
+ <p class="lsd-alert lsd-warning"><?php esc_html_e('Some account pages need attention. Check their status below.', 'listdom'); ?></p>
+ <?php endif; ?>
+ <?php foreach ($plan as $key => $item): ?>
+ <?php
+ $settings_url = LSD_Portal::admin_url('account-setup', 'pages');
+ ?>
+ <div class="lsd-form-row">
+ <div class="lsd-col-3"><strong><?php echo esc_html($definitions[$key][0]); ?></strong></div>
+ <div class="lsd-col-9">
+ <?php if (in_array($item['status'], ['assigned', 'reuse'], true)): ?>
+ <?php if ($item['status'] === 'reuse') esc_html_e('Will reuse', 'listdom'); ?>
+ <a href="<?php echo esc_url(get_permalink($item['id'])); ?>"><?php echo esc_html(get_the_title($item['id'])); ?></a>
+ <?php elseif ($item['status'] === 'invalid'): ?>
+ <?php esc_html_e('The assigned page is unavailable. Update the assignment in Settings.', 'listdom'); ?>
+ <?php else: ?>
+ <?php echo esc_html($item['generated'] === 'authentication' ? __('Will use a new shared Authentication page', 'listdom') : __('Will create a page', 'listdom')); ?>
+ <?php endif; ?>
+ <?php if ($key === 'account' || $key === 'profile'): ?>
+ <a href="<?php echo esc_url($settings_url); ?>"><?php esc_html_e('Page settings', 'listdom'); ?></a>
+ <?php endif; ?>
+ </div>
+ </div>
+ <?php endforeach; ?>
+ <?php if (array_intersect(['reuse', 'create'], array_column($plan, 'status'))): ?>
+ <button type="submit" form="lsd_account_page_setup" class="lsd-secondary-button"><?php esc_html_e('Set Up Account Pages', 'listdom'); ?></button>
+ <?php endif; ?>
+</div>
--- a/listdom/app/html/menus/settings/tabs/auth-password-policy.php
+++ b/listdom/app/html/menus/settings/tabs/auth-password-policy.php
@@ -0,0 +1,104 @@
+<?php
+defined('ABSPATH') || die();
+?>
+<div class="lsd-settings-fields-wrapper">
+ <h3 class="lsd-admin-title"><?php esc_html_e('Password Policy', 'listdom'); ?></h3>
+ <div class="lsd-form-row">
+ <div class="lsd-col-3"><?php echo LSD_Form::label([
+ 'class' => 'lsd-fields-label',
+ 'title' => esc_html__('Strong Password', 'listdom'),
+ 'for' => 'lsd_auth_strong_password',
+ ]); ?></div>
+ <div class="lsd-col-5">
+ <?php echo LSD_Form::switcher([
+ 'id' => 'lsd_auth_strong_password',
+ 'name' => 'lsd[register][strong_password]',
+ 'value' => $auth['register']['strong_password'],
+ 'toggle' => "#lsd-strong-password-setting"
+ ]); ?>
+ </div>
+ </div>
+
+ <div id="lsd-strong-password-setting" class="lsd-settings-fields-sub-wrapper <?php echo $auth['register']['strong_password'] == 0 ? 'lsd-util-hide' : '' ?>">
+ <div class="lsd-form-row">
+ <div class="lsd-col-3"><?php echo LSD_Form::label([
+ 'class' => 'lsd-fields-label',
+ 'title' => esc_html__('Password Length', 'listdom'),
+ 'for' => 'lsd_auth_password_length',
+ ]); ?></div>
+ <div class="lsd-col-5">
+ <?php echo LSD_Form::number([
+ 'class' => 'lsd-admin-input',
+ 'id' => 'lsd_auth_password_length',
+ 'name' => 'lsd[register][password_length]',
+ 'value' => $auth['register']['password_length'],
+ 'attributes' => [
+ 'min' => 8,
+ 'max' => 24,
+ 'step' => 1
+ ],
+ ]); ?>
+ </div>
+ </div>
+
+ <div class="lsd-form-row">
+ <div class="lsd-col-3"><?php echo LSD_Form::label([
+ 'class' => 'lsd-fields-label',
+ 'title' => esc_html__('Contain Uppercase', 'listdom'),
+ 'for' => 'lsd_auth_contain_uppercase',
+ ]); ?></div>
+ <div class="lsd-col-5">
+ <?php echo LSD_Form::switcher([
+ 'id' => 'lsd_auth_contain_uppercase',
+ 'name' => 'lsd[register][contain_uppercase]',
+ 'value' => $auth['register']['contain_uppercase'],
+ ]); ?>
+ </div>
+ </div>
+
+ <div class="lsd-form-row">
+ <div class="lsd-col-3"><?php echo LSD_Form::label([
+ 'class' => 'lsd-fields-label',
+ 'title' => esc_html__('Contain Lowercase', 'listdom'),
+ 'for' => 'lsd_auth_contain_lowercase',
+ ]); ?></div>
+ <div class="lsd-col-5">
+ <?php echo LSD_Form::switcher([
+ 'id' => 'lsd_auth_contain_lowercase',
+ 'name' => 'lsd[register][contain_lowercase]',
+ 'value' => $auth['register']['contain_lowercase'],
+ ]); ?>
+ </div>
+ </div>
+
+ <div class="lsd-form-row">
+ <div class="lsd-col-3"><?php echo LSD_Form::label([
+ 'class' => 'lsd-fields-label',
+ 'title' => esc_html__('Contain Numbers', 'listdom'),
+ 'for' => 'lsd_auth_contain_numbers',
+ ]); ?></div>
+ <div class="lsd-col-5">
+ <?php echo LSD_Form::switcher([
+ 'id' => 'lsd_auth_contain_numbers',
+ 'name' => 'lsd[register][contain_numbers]',
+ 'value' => $auth['register']['contain_numbers'],
+ ]); ?>
+ </div>
+ </div>
+
+ <div class="lsd-form-row">
+ <div class="lsd-col-3"><?php echo LSD_Form::label([
+ 'class' => 'lsd-fields-label',
+ 'title' => esc_html__('Contain Special Characters', 'listdom'),
+ 'for' => 'lsd_auth_contain_specials',
+ ]); ?></div>
+ <div class="lsd-col-5">
+ <?php echo LSD_Form::switcher([
+ 'id' => 'lsd_auth_contain_specials',
+ 'name' => 'lsd[register][contain_specials]',
+ 'value' => $auth['register']['contain_specials'],
+ ]); ?>
+ </div>
+ </div>
+ </div>
+</div>
--- a/listdom/app/html/menus/settings/tabs/auth-passwordless.php
+++ b/listdom/app/html/menus/settings/tabs/auth-passwordless.php
@@ -0,0 +1,11 @@
+<?php
+defined('ABSPATH') || die();
+?>
+<div class="lsd-settings-fields-wrapper">
+ <?php if (!LSD_Base::isPro()): ?><div class="lsd-alert lsd-warning"><?php esc_html_e('Email sign-in links and passkeys require Listdom Pro. All four social providers are available in Free.', 'listdom'); ?></div><?php endif; ?>
+ <?php foreach (['magic' => __('Email sign-in links', 'listdom'), 'passkeys' => __('Passkeys', 'listdom')] as $method => $label): ?>
+ <div class="lsd-form-row"><div class="lsd-col-3"><?php echo LSD_Form::label(['for' => 'lsd_passwordless_' . $method, 'title' => $label]); ?></div><div class="lsd-col-5"><?php echo LSD_Form::switcher(['id' => 'lsd_passwordless_' . $method, 'name' => 'lsd[passwordless][' . $method . ']', 'value' => $auth['passwordless'][$method] ?? 0]); ?></div></div>
+ <?php endforeach; ?>
+ <p class="lsd-admin-description"><?php esc_html_e('Magic links sign in existing accounts only, expire after 10 minutes, and work only in the requesting browser. Passkeys require HTTPS and a supported browser. Enable the Passkeys section under Account Security for enrollment, management and sign-in. Password login and free account recovery remain available.', 'listdom'); ?></p>
+</div>
+<p class="lsd-admin-description"><a href="<?php echo esc_url(LSD_Portal::admin_url('security', 'account-sections')); ?>"><?php esc_html_e('Manage the Passkeys section under Account Security → Account Sections', 'listdom'); ?></a></p>
--- a/listdom/app/html/menus/settings/tabs/auth-profiles.php
+++ b/listdom/app/html/menus/settings/tabs/auth-profiles.php
@@ -0,0 +1,84 @@
+<?php
+defined('ABSPATH') || die();
+?>
+<div class="lsd-settings-fields-wrapper">
+ <h3 class="lsd-my-0 lsd-admin-title"><?php esc_html_e('User Profile', 'listdom'); ?></h3>
+ <p class="lsd-admin-description lsd-m-0"><?php echo sprintf(
+ /* translators: %s: Profile shortcode. */
+ esc_html__('Insert the %s shortcode into any page to display the user profile.', 'listdom'),
+ '<code>[listdom-profile]</code>'
+ ); ?></p>
+ <div class="lsd-form-row">
+ <div class="lsd-col-3"><label for="lsd_profile_visibility" class="lsd-fields-label"><?php esc_html_e('Profile and Directory Visibility', 'listdom'); ?></label></div>
+ <div class="lsd-col-5">
+ <?php echo LSD_Form::select([
+ 'id' => 'lsd_profile_visibility',
+ 'class' => 'lsd-admin-input',
+ 'name' => 'lsd[profile][visibility]',
+ 'value' => LSD_Portal::public_profiles() ? 'public' : 'private',
+ 'options' => [
+ 'public' => __('Public profiles and user directory', 'listdom'),
+ 'private' => __('Private profiles', 'listdom'),
+ ],
+ ]); ?>
+ <p class="lsd-admin-description-tiny"><?php esc_html_e('Private profiles are visible only to their owner, and the user directory is hidden. This setting applies independently of dashboard menus and their order.', 'listdom'); ?></p>
+ <a href="<?php echo esc_url(LSD_Portal::admin_url('profiles-directory', 'fields')); ?>"><?php esc_html_e('Manage which fields can appear on public profiles', 'listdom'); ?></a>
+ </div>
+ </div>
+
+
+ <div class="lsd-form-row">
+ <div class="lsd-col-3"><?php echo LSD_Form::label([
+ 'class' => 'lsd-fields-label',
+ 'title' => esc_html__('Author Listings Shortcode', 'listdom'),
+ 'for' => 'lsd_author_shortcode',
+ ]); ?></div>
+ <div class="lsd-col-5">
+ <?php echo LSD_Form::shortcodes([
+ 'class' => 'lsd-admin-input',
+ 'id' => 'lsd_author_shortcode',
+ 'name' => 'lsd[profile][shortcode]',
+ 'value' => $auth['profile']['shortcode'] ?? '',
+ 'only_archive_skins' => true,
+ 'show_empty' => true,
+ ]); ?>
+ </div>
+ </div>
+</div>
+
+<div class="lsd-settings-fields-wrapper">
+ <h3 class="lsd-admin-title lsd-m-0"><?php esc_html_e('Privacy Consent', 'listdom'); ?></h3>
+ <div class="lsd-form-row">
+ <div class="lsd-col-3"><?php echo LSD_Form::label([
+ 'class' => 'lsd-fields-label',
+ 'title' => esc_html__('Enable', 'listdom'),
+ 'for' => 'lsd_auth_profile_pc_enabled',
+ ]); ?></div>
+ <div class="lsd-col-5">
+ <?php echo LSD_Form::switcher([
+ 'id' => 'lsd_auth_profile_pc_enabled',
+ 'name' => 'lsd[profile][pc_enabled]',
+ 'value' => $auth['profile']['pc_enabled'],
+ 'toggle' => '#lsd_auth_profile_pc_label_row',
+ ]); ?>
+ <p class="lsd-admin-description-tiny lsd-mb-0 lsd-mt-2"><?php esc_html_e('This control also depends on the global privacy consent setting.', 'listdom'); ?></p>
+ </div>
+ </div>
+ <div class="lsd-form-row<?php echo empty($auth['profile']['pc_enabled']) ? ' lsd-util-hide' : ''; ?>" id="lsd_auth_profile_pc_label_row">
+ <div class="lsd-col-3"><?php echo LSD_Form::label([
+ 'class' => 'lsd-fields-label',
+ 'title' => esc_html__('Label', 'listdom'),
+ 'for' => 'lsd_auth_profile_pc_label',
+ ]); ?></div>
+ <div class="lsd-col-5">
+ <?php echo LSD_Form::text([
+ 'class' => 'lsd-admin-input',
+ 'id' => 'lsd_auth_profile_pc_label',
+ 'name' => 'lsd[profile][pc_label]',
+ 'value' => $auth['profile']['pc_label'],
+ ]); ?>
+ <p class="lsd-admin-description-tiny lsd-mb-0 lsd-mt-2"><?php esc_html_e('Leave empty to use the default label. Use {{privacy_policy}} to automatically include the default privacy policy page link.', 'listdom'); ?></p>
+ </div>
+ </div>
+</div>
+<p class="lsd-admin-description"><a href="<?php echo esc_url(LSD_Portal::admin_url('account-setup', 'pages')); ?>"><?php esc_html_e('Manage account page assignments', 'listdom'); ?></a></p>
--- a/listdom/app/html/menus/settings/tabs/auth-recovery.php
+++ b/listdom/app/html/menus/settings/tabs/auth-recovery.php
@@ -0,0 +1,62 @@
+<?php
+defined('ABSPATH') || die();
+?>
+<p class="lsd-admin-description lsd-m-0"><?php echo sprintf(
+ /* translators: %s: Forgot password shortcode. */
+ esc_html__('Insert the %s shortcode into any page to display a forgot password form.', 'listdom'),
+ '<code>[listdom-forgot-password]</code>'
+); ?></p>
+ <div class="lsd-settings-fields-wrapper">
+ <h3 class="lsd-admin-title"><?php esc_html_e('Labels', 'listdom'); ?></h3>
+ <div class="lsd-form-row">
+ <div class="lsd-col-3"><?php echo LSD_Form::label([
+ 'class' => 'lsd-fields-label',
+ 'title' => esc_html__('Email', 'listdom'),
+ 'for' => 'lsd_auth_forgot_password_email_label',
+ ]); ?></div>
+ <div class="lsd-col-5">
+ <?php echo LSD_Form::text([
+ 'class' => 'lsd-admin-input',
+ 'id' => 'lsd_auth_forgot_password_email_label',
+ 'name' => 'lsd[forgot_password][email_label]',
+ 'value' => $auth['forgot_password']['email_label']
+ ]); ?>
+ </div>
+ </div>
+
+ <div class="lsd-form-row">
+ <div class="lsd-col-3"><?php echo LSD_Form::label([
+ 'class' => 'lsd-fields-label',
+ 'title' => esc_html__('Button Label', 'listdom'),
+ 'for' => 'lsd_auth_forgot_password_submit_label',
+ ]); ?></div>
+ <div class="lsd-col-5">
+ <?php echo LSD_Form::text([
+ 'class' => 'lsd-admin-input',
+ 'id' => 'lsd_auth_forgot_password_submit_label',
+ 'name' => 'lsd[forgot_password][submit_label]',
+ 'value' => $auth['forgot_password']['submit_label']
+ ]); ?>
+ </div>
+ </div>
+</div>
+ <div class="lsd-settings-fields-wrapper">
+ <h3 class="lsd-admin-title"><?php esc_html_e('Placeholders', 'listdom'); ?></h3>
+ <div class="lsd-form-row">
+ <div class="lsd-col-3"><?php echo LSD_Form::label([
+ 'class' => 'lsd-fields-label',
+ 'title' => esc_html__('Email', 'listdom'),
+ 'for' => 'lsd_auth_forgot_password_email_placeholder',
+ ]); ?></div>
+ <div class="lsd-col-5">
+ <?php echo LSD_Form::text([
+ 'class' => 'lsd-admin-input',
+ 'id' => 'lsd_auth_forgot_password_email_placeholder',
+ 'name' => 'lsd[forgot_password][email_placeholder]',
+ 'value' => $auth['forgot_password']['email_placeholder']
+ ]); ?>
+ </div>
+ </div>
+</div>
+
+<p class="lsd-admin-description"><a href="<?php echo esc_url(LSD_Portal::admin_url('security', 'password-policy')); ?>"><?php esc_html_e('Manage password requirements in Account Security → Password Policy', 'listdom'); ?></a></p>
--- a/listdom/app/html/menus/settings/tabs/auth-registration.php
+++ b/listdom/app/html/menus/settings/tabs/auth-registration.php
@@ -0,0 +1,289 @@
+<?php
+defined('ABSPATH') || die();
+?>
+<div class="lsd-alert lsd-info lsd-mt-0">
+ <strong><?php esc_html_e('Listdom roles:', 'listdom'); ?></strong>
+ <?php echo esc_html__('Listdom adds two new user roles. Listdom Authors can create listings and manage their own submissions, while Listdom Publishers can publish listings directly and manage published ones.', 'listdom'); ?>
+</div>
+<div class="lsd-settings-fields-wrapper">
+ <h3 class="lsd-admin-title"><?php esc_html_e('Registration Policy & Roles', 'listdom'); ?></h3>
+ <?php $row('lsd_registration_policy', __('Public Registration', 'listdom'), LSD_Form::select([
+ 'class' => 'lsd-admin-input lsd-trigger-select-options', 'id' => 'lsd_registration_policy', 'name' => 'lsd[register][policy]', 'value' => $auth['register']['policy'],
+ 'options' => [
+ 'wordpress' => ['label' => __('Follow WordPress', 'listdom'), 'attributes' => ['data-lsd-show' => '#lsd_registration_role_fields']],
+ 'enabled' => ['label' => __('Enabled', 'listdom'), 'attributes' => ['data-lsd-show' => '#lsd_registration_role_fields']],
+ 'disabled' => ['label' => __('Disabled', 'listdom'), 'attributes' => ['data-lsd-hide' => '#lsd_registration_role_fields']],
+ ],
+ ]), __('Controls Listdom and Listdomer public forms and REST registration. Enabled can override the single-site WordPress setting; multisite network restrictions still apply. Native WordPress registration keeps its own setting. Explicitly authorized imports, approvals, guest-submission workflows, and API push integrations keep their separate authorization.', 'listdom')); ?>
+ <div id="lsd_registration_role_fields" class="<?php echo $auth['register']['policy'] === 'disabled' ? 'lsd-util-hide' : ''; ?>">
+ <div class="lsd-settings-fields-sub-wrapper">
+ <div class="lsd-form-row">
+ <div class="lsd-col-3"><span class="lsd-fields-label"><?php esc_html_e('Public Roles', 'listdom'); ?></span></div>
+ <div class="lsd-col-5">
+ <input type="hidden" name="lsd[register][public_roles][]" value="">
+ <?php echo LSD_Form::checkboxes([
+ 'class' => 'lsd-my-0 lsd-ai-checkboxes',
+ 'name' => 'lsd[register][public_roles][]',
+ 'value' => LSD_Security::public_roles(),
+ 'options' => $safe_roles,
+ ]); ?>
+ <p class="lsd-admin-description-tiny"><?php esc_html_e('Only checked roles can be assigned by public registration, including role-specific shortcodes. Roles with administrative capabilities cannot be approved.', 'listdom'); ?></p>
+ </div>
+ </div>
+ <?php $row('lsd_registration_default_role', __('Default Role', 'listdom'), LSD_Form::select(['class' => 'lsd-admin-input', 'id' => 'lsd_registration_default_role', 'name' => 'lsd[register][default_role]', 'value' => $auth['register']['default_role'], 'options' => $safe_roles, 'show_empty' => true]), __('Select an approved role. This replaces the default user role for Listdom-created users.', 'listdom')); ?>
+ </div>
+ </div>
+</div>
+<p class="lsd-admin-description lsd-m-0"><?php echo sprintf(
+ /* translators: %s: Register shortcode. */
+ esc_html__('Insert the %s shortcode into any page to display a register form.', 'listdom'),
+ '<code>[listdom-register]</code>'
+); ?></p>
+<div class="lsd-alert lsd-info lsd-my-0">
+ <?php echo esc_html__('You can restrict the register form to a specific role using the role parameter (subscriber, contributor, listdom_author or listdom_publisher). Example:', 'listdom'); ?>
+ <strong>[listdom-register role="listdom_author"]</strong>
+</div>
+<p class="lsd-admin-description"><a href="<?php echo esc_url(LSD_Portal::admin_url('profiles-directory', 'fields')); ?>"><?php esc_html_e('Manage registration fields in Users → Profiles & Directory → Fields', 'listdom'); ?></a></p>
+<div class="lsd-settings-fields-wrapper">
+ <h3 class="lsd-admin-title"><?php esc_html_e('Email Verification', 'listdom'); ?></h3>
+ <div class="lsd-form-row">
+ <div class="lsd-col-3"><?php echo LSD_Form::label([
+ 'class' => 'lsd-fields-label',
+ 'title' => esc_html__('Require Email Verification',