=== AddonLogic Frontend Login Register ===
Contributors: snehalpancholi
Tags: login, register, frontend, shortcode, membership, password reset
Requires at least: 6.0
Tested up to: 6.7
Stable tag: 1.0.0
Requires PHP: 8.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Shortcodes for frontend login, registration, and password-reset forms with CSRF protection, honeypot spam blocking, and redirect support.

== Description ==

AddonLogic Frontend Login Register lets you display fully styled, accessible, CSRF-protected login, registration, and password-reset forms anywhere on your site using simple shortcodes.

**Shortcodes**

* `[flr_login]` — Frontend login form
* `[flr_register]` — Frontend registration form with honeypot spam protection
* `[flr_reset]` — Password reset request form

**Key Features**

* CSRF protection with WordPress nonces on every form
* Honeypot anti-spam field on the registration form
* Show/Hide password toggle (vanilla JS, no jQuery)
* Client-side password-match validation on the registration form
* Configurable redirect URLs per shortcode and per global default
* Automatically redirects already-logged-in users away from form pages
* Accessible markup — ARIA roles, aria-required, aria-live notices
* CSS Custom Properties with automatic dark-mode support
* Assets enqueued only on pages where a shortcode is present
* No external dependencies, no page builders required
* Auto-updates via the AddonLogic update server

**Admin Settings (Settings › Frontend Login)**

* Default login redirect URL
* Default registration redirect URL
* Enable / disable new user registration
* Enable / disable logged-in user redirect
* Custom "members only" message
* Custom "check your email" message for password resets

== Installation ==

1. Upload the `frontend-login-register` folder to `/wp-content/plugins/`.
2. Activate the plugin through the **Plugins** screen in WordPress.
3. Go to **Settings › Frontend Login** and configure your redirect URLs and messages.
4. Create or edit any page and add the desired shortcode.

== Frequently Asked Questions ==

= Can I use all three shortcodes on the same page? =
Yes, though it is generally better UX to place each form on its own page.

= How do I change the redirect after login? =
Pass a `redirect` attribute to the shortcode — `[flr_login redirect="/members-area"]` — or set the global default under **Settings › Frontend Login**.

= Will registration still work if WordPress core registration is disabled? =
Yes. The plugin's registration toggle is independent of the WordPress `anyone_can_register` setting. Use the plugin's **Enable Registration** checkbox.

= Is jQuery required? =
No. All JavaScript is vanilla ES6.

= What gets deleted on uninstall? =
The `addlc_flr_options` database option and the `addlc_flr_update_cache` transient are removed. User accounts and post data are never touched.

== Screenshots ==

1. Frontend login form — clean card layout with show/hide password toggle.
2. Frontend registration form — with honeypot field and password-match validation.
3. Password reset request form — minimal, accessible design.
4. Admin settings page — Settings › Frontend Login.

== Changelog ==

= 1.0.0 =
* Initial release.
