=== Diánda ===
Contributors: cbon
Tags: login, registration, user registration, members, account
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 2.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Login, registration and password recovery pages with email confirmation, for any WordPress site.

== Description ==

Diánda gives your site its own pages for readers to sign in, create an account and recover their password, without touching your theme or the rest of the site. It uses the native WordPress users.

* **Login, Register and Password recovery** on regular site pages, inside your theme (header and footer untouched), with your site logo.
* **Email confirmation** before the first sign-in, with resend and expiring links.
* **Account page** with the member's name, email and a sign-out button.
* **Consent** with links to your Privacy Policy and Terms of Use. Public registration only opens after the legal pages are selected and reviewed.
* **Sign in with Google** through Site Kit by Google (optional).
* **Editable emails**: sender, colours, logo, subject, heading and text of each message, with preview and test sending.
* **Security**: rate limiting, anti-spam, messages that never reveal whether an email has an account, no-cache headers on account pages and an option to hide the WordPress toolbar from members.
* **Privacy**: works with the WordPress "Export Personal Data" and "Erase Personal Data" tools and suggests text for your Privacy Policy.
* Works when the WordPress login is hidden: it does not use wp-login.php or admin-ajax on the public site.
* Light or dark scheme, with the Inter and Space Grotesk fonts bundled in the plugin (SIL OFL 1.1). No requests to external font services.

Diánda itself makes no requests to external servers. The only external service involved is the optional «Sign in with Google», described below.

= External services =

**Sign in with Google (optional, off unless you set it up).** This feature is provided by the [Site Kit by Google](https://wordpress.org/plugins/google-site-kit/) plugin, which must be installed and connected separately. When it is enabled, Diánda shows Site Kit's Google sign-in button on the login and registration pages. Site Kit then loads Google's sign-in script in the visitor's browser and, when a visitor chooses to sign in with Google, sends the sign-in request to Google and receives the visitor's name, email address and Google account identifier, which are used to sign in or create the WordPress account. Nothing is sent to Google unless Site Kit's sign-in is configured and the visitor uses the Google button.

This service is provided by Google: [Terms of Service](https://policies.google.com/terms), [Privacy Policy](https://policies.google.com/privacy).

The interface is in Portuguese (Portugal and Angola).

= Diánda Pro =

Diánda Pro, by Agência Cbon, adds a full members area (saved articles, reading history, notifications, interests, restricted content and customisation). It is available from [cbon.ao](https://cbon.ao/dianda). Diánda works on its own, without Pro.

== Installation ==

1. Install the plugin from Plugins › Add New (or upload the ZIP) and activate it.
2. Open «Diánda» › Settings and click «Criar páginas em falta» (create missing pages).
3. In «Consentimento» (consent), choose your Privacy Policy and Terms of Use pages and confirm the legal review.
4. In «Geral» (general), enable «Permitir novos registos» (allow new registrations).
5. If you use a page cache plugin, exclude the four account pages from the cache (the plugin also sends no-cache headers).

== Frequently Asked Questions ==

= Which shortcodes are available? =

`[dianda_login]` (sign in), `[dianda_register]` (create account), `[dianda_password_reset]` (recover password) and `[dianda_area]` (account page). The «Criar páginas em falta» button creates the four pages with the right shortcode.

= Does it work with any theme? =

Yes. The pages are shown inside the page content, between your theme's header and footer. All CSS is scoped to the `.dianda` class.

= Can I use the plugin pages instead of wp-login.php? =

Yes: in Settings › Geral, enable «Substituir os URLs do WordPress» (replace the WordPress URLs). It is off by default so the site's behaviour does not change.

= What data does it store? =

The usual WordPress account data and, in addition, the registration date, the consent date, the date the email was confirmed and whether the account was created with Google. Everything stays in the site's database and is exported and erased by the WordPress privacy tools.

= Does it need Site Kit? =

Only for «Sign in with Google». Everything else works without other plugins.

== Screenshots ==

1. Login page, inside the site theme and with the site name.
2. Registration page with consent to the Privacy Policy and Terms of Use.
3. Password recovery.
4. Account page for a signed-in member.
5. Registration on a phone.
6. Settings: pages, registration and access, email sender.
7. Editable emails: colours, logo, subject, heading and text of each message.
8. Consent: legal pages, consent text and legal review.

== Changelog ==

= 2.0.1 =
* Form requests are checked (nonce) before any field is read.
* Shortcode output protection now uses the WordPress page buffer (WordPress 6.9+).
* The setup notice can be dismissed.
* The readme describes the optional Google sign-in service.

= 2.0.0 =
* First public release in the WordPress plugin directory: sign in, registration, password recovery, email confirmation, account page, consent, editable emails, Sign in with Google (Site Kit) and privacy tools integration.
* The full members area features moved to Diánda Pro. Existing data is kept and shows up again when Pro is installed.

== Upgrade Notice ==

= 2.0.0 =
The full members area (dashboard, saved articles, history, notifications, restricted content, customisation) moved to Diánda Pro. No data is deleted.
