gnu-social/plugins/RequireValidatedEmail
Mikael Nordfeldth de55d8f83b plugins onAutoload now only overloads if necessary (extlibs etc.)
lib/plugin.php now has a parent onAutoload function that finds most common
files that are used in plugins (actions, dataobjects, forms, libs etc.) if
they are put in the standardised directories ('actions', 'classes', 'forms',
'lib' and perhaps some others in the future).
2013-08-28 16:10:30 +02:00
..
actions plugins onAutoload now only overloads if necessary (extlibs etc.) 2013-08-28 16:10:30 +02:00
locale Localisation updates from http://translatewiki.net. 2012-06-30 11:10:38 +00:00
scripts plugins onAutoload now only overloads if necessary (extlibs etc.) 2013-08-28 16:10:30 +02:00
README Add translator documentation. 2011-06-05 19:58:11 +02:00
RequireValidatedEmailPlugin.php plugins onAutoload now only overloads if necessary (extlibs etc.) 2013-08-28 16:10:30 +02: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 validationr equirement to existing
accounts, you can specify a cutoff date to grandfather in users
registered prior to that timestamp.

  addPlugin('RequireValidatedEmail',
            array('grandfatherCutoff' => 'Dec 7, 2009');

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', array(
     'trustedOpenIDs' => array(
         '!^http://\w+\.wikihow\.com/!',
         '!^http://\w+\.wikipedia\.org/!',
     ),
  ));

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