Alexei Sorokin 7cb10b71bb [RequireValidatedEmail] Only check current user posts | il y a 4 ans | |
---|---|---|
.. | ||
actions | il y a 5 ans | |
locale | il y a 4 ans | |
scripts | il y a 5 ans | |
README.md | il y a 4 ans | |
RequireValidatedEmailPlugin.php | il y a 4 ans |
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: