Manual talk:$wgEmailConfirmToEdit
The wgEmailConfirmToEdit flag doesn't seem to be working for me; is there anything else I need to do to make this flag recognized in LocalSettings.php?
Thanks!
- When I use this, it returned the following error:
Fatal error: Call to a member function selectRow() on a non-object in /usr/local/www/mediawiki/includes/User.php on line 829
--Stardancer 09:23, 14 October 2007 (UTC)
Contents |
[edit] how to bypass for anon users?!!?
Hello, I wish to use this function to validate my users. I then use namespace protection to prevent anon users from editing all but the custom sandbox namespace. This works perfectly as the edit tab it only avaible for anon users while under the sandbox namespace.
HOWEVER... when i edit pages in this namespace it requests i confirm my email? is there any way i can prevent emailconfirmtoedit from effecting the * / anon users?
- Yea, searching for that feature, too. --88.130.222.143 18:00, 19 March 2009 (UTC)
-
- Add the first line below to (includes/) Title.php (1.16x)
if(!$user->isAnon())
if ( $wgEmailConfirmToEdit && !$user->isEmailConfirmed() && $action != 'createaccount' ) {
$errors[] = array( 'confirmedittext' );
}
This should be default IMO because the alternative is non-sense. Make a note of this somewhere preferably in your wiki in case it has to be redone every time you update MediaWiki :/ --67.54.235.190 21:06, 23 November 2011 (UTC)
[edit] stupid default
IMHO it's a bit stupid that this defaults to false, considering there's plenty of spambots... --Lo'oris 10:16, 6 November 2008 (UTC)
- Email address confirmation is not a viable anti-spam measure; bots have been able to confirm their accounts on forums for years. —Emufarmers(T|C) 12:37, 6 November 2008 (UTC)
[edit] Limited Emails
Is there a way to limit either email confirmation or editing to a specific subset of email addresses? For example, if I want to limit all users and editing to those with confirmed email addresses from ucsb.edu Kuang Eleven 20:35, 9 January 2009 (UTC)
I have same wish for my wiki. Please could someone help with a piece of code. --Lovskov 14:34, 25 April 2009 (UTC)
- You need to use the isValidEmailAddr hook. iAlex 18:44, 25 April 2009 (UTC)
[edit] Incorrect Text
I've implemented this but my signup page still says that the email address is optional... But it's not... It's required in order to get validated... Any idea how I can change that?
"E-mail address is optional, but is needed for password resets, should you forget your password. You can also choose to let others contact you through your user or talk page without needing to reveal your identity."