Alexei Sorokin 7cb10b71bb [RequireValidatedEmail] Only check current user posts %!s(int64=4) %!d(string=hai) anos
..
actions 7967db6ff5 Various obvious bug fixes and better PHP 7 support %!s(int64=5) %!d(string=hai) anos
locale a9c365a5eb [VersionBump] 2.0.0alpha0 %!s(int64=4) %!d(string=hai) anos
scripts ad91ef66bd [SCRIPTS] Set PUBLICDIR in plugin scripts as well %!s(int64=5) %!d(string=hai) anos
README.md 7cb10b71bb [RequireValidatedEmail] Only check current user posts %!s(int64=4) %!d(string=hai) anos
RequireValidatedEmailPlugin.php 7cb10b71bb [RequireValidatedEmail] Only check current user posts %!s(int64=4) %!d(string=hai) anos

README.md

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