gnu-social/plugins/RequireValidatedEmail
Evan Prodromou 997b0933ea Don't use bogus event in emailregistration
I was trying to be smart by calling the same registration event as 'register'
when doing EmailRegistration. However, that event is so low-bandwidth that plugins
go fingerpoken in all the attributes and call methods on the passed-in action and
things like that.

So, now we just fall back to using the low-level stuff, catch any
exceptions, and feel happy. Some stuff might not work, but it's
generally anti-spam stuff more suited to public sites.
2011-04-18 19:33:12 -04:00
..
locale Localisation updates from http://translatewiki.net. 2011-04-18 13:41:15 +02:00
confirmfirstemail.php Fix gettext domain for messages in plugins "_()" to "_m()". 2011-03-30 22:31:23 +02:00
README Add config option for RequireValidatedEmail plugin to skip the check for folks with a trusted OpenID association. 2010-05-19 15:45:46 -07:00
registerbyemail.php Let users who aren't allowed to login confirm their email separately 2011-02-25 08:01:41 -08:00
RequireValidatedEmailPlugin.php Don't use bogus event in emailregistration 2011-04-18 19:33:12 -04: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