The isValidEmailAddr hook [1] can be used to reject email addresses, so that
could be useful for SpamBlacklist. Note that the leading character in the
hook name is lowercase. 

[1] https://www.mediawiki.org/wiki/Manual:Hooks/isValidEmailAddr

-----Original Message-----
From: lens0021 lens0021 <[email protected]> 
Sent: Tuesday, September 24, 2024 7:46 AM
To: [email protected]
Subject: [Wikitech-l] Need an alternative to PrefsEmailAuditHook

Hi.

The phpdoc of PrefsEmailAuditHook describes the return value can abort the
changing, but actually it can't.

Therefore, extensions cannot prevent users from changing their emails.
More specially, there is an open task for Extension:SpamBlacklist. [1] Users
can easily bypass the email blacklist, and it really bothers me on a wiki
where I act as a bureaucrat.

So Uploaded a patch for this and a patch for SpamBlacklist in May.
And now I've realized I didn't promote my patches enough.

If you are interested, please help me by giving a comment or reviewing my
patches.

Regards.

1: https://phabricator.wikimedia.org/T315128
_______________________________________________
Wikitech-l mailing list -- [email protected] To unsubscribe
send an email to [email protected]
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/

_______________________________________________
Wikitech-l mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/

Reply via email to