gnu-social/plugins/RequireValidatedEmail
Alexei Sorokin 7cb10b71bb [RequireValidatedEmail] Only check current user posts
This check made registration impossible when welcomeuser didn't have validation
as well.

And rename the "grandfatherCutoff" option to "exemptBefore".
"Grandfathering" is a relatively obscure term linked to the history of the
United States of America, so replace that with something self-descriptive.
2020-08-09 23:58:25 +03:00
..
actions Various obvious bug fixes and better PHP 7 support 2019-04-26 00:34:17 +01:00
locale [VersionBump] 2.0.0alpha0 2020-08-04 05:31:44 +01:00
scripts [SCRIPTS] Set PUBLICDIR in plugin scripts as well 2019-09-18 17:15:00 +03:00
README.md [RequireValidatedEmail] Only check current user posts 2020-08-09 23:58:25 +03:00
RequireValidatedEmailPlugin.php [RequireValidatedEmail] Only check current user posts 2020-08-09 23:58:25 +03:00

This plugin disables posting for accounts that do not have a validated email address.

Example:

  addPlugin('RequireValidatedEmail');

If you don't want to apply the validation equirement to existing accounts, you can specify a date users registered before which are exempted from validation.

    addPlugin('RequireValidatedEmail', [
        'exemptBefore' => '2009-12-07',
    ]);

You can also exclude the validation checks from OpenID accounts connected to a trusted provider, by providing a list of regular expressions to match their provider URLs.

For example, to trust WikiHow and Wikipedia users:

    addPlugin('RequireValidatedEmailPlugin', [
        'trustedOpenIDs' => [
            '!^https?://\w+\.wikihow\.com/!',
            '!^https?://\w+\.wikipedia\.org/!',
        ],
    ]);

Todo:

  • add a more visible indicator that validation is still outstanding
  • test with XMPP, API posting