Manual talk:$wgEmailConfirmToEdit

From mediawiki.org
Jump to navigation Jump to search

Does not work for me[edit]

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)[]

how to bypass for anon users?!!?[edit]

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)[]

This still works for MediaWiki 1.31 :) --Stefahn (talk) 12:29, 10 April 2020 (UTC)[]
In MediaWiki 1.34 you will have to add the line if(!$user->isAnon()) no longer in includes/Title.php but in includes/Permissions/PermissionManager.php above line 649 (MediaWiki 1.34.1). Still works like a charm. --Stefahn (talk) 12:21, 26 May 2020 (UTC)[]

stupid default[edit]

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)[]

Limited Emails[edit]

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)[]

Incorrect Text[edit]

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."

This will be fixed as part of https://gerrit.wikimedia.org/r/#/c/57823 . Superm401 - Talk 00:09, 19 April 2013 (UTC)[]

How do I look up the confirmed email?[edit]

There are several spambots that are creating accounts on my website, waiting a few days, then posting. since I've set this to true, they must be confirming their email address. How do I look up their email so that I can see who they're registering emails with so I can contact that provider? Banaticus (talk) 19:05, 19 October 2012 (UTC)[]

There are several extensions around that help having a look a the user's data. I think Extension:UserExport this is the one what suites you need best. Cheers --[[kgh]] (talk) 00:13, 6 February 2013 (UTC)[]
Hello Banaticus , did you find a solution to look up the confirmed email ? Nicolas NALLET Wiki-Valley.com, Semantiki.fr (talk) 10:24, 19 December 2017 (UTC)[]
No. Ultimately I just blacklisted all of China and suddenly the spam stopped. If you have a solution then I'd love to hear it. :) Banaticus (talk) 20:26, 21 December 2017 (UTC)[]

Email Text[edit]

I cant for the life of me find were I can change the content of the confirmation email. Can someone point me in the right direction?

Help:System message, try grepping en.json or translatewiki:Special:SearchTranslations. --Nemo 13:20, 17 June 2014 (UTC)[]
Did anyone ever find out how to edit the message?--Bentstuart1600 (talk) 01:34, 14 February 2015 (UTC)[]
Did you try following the instructions? --Nemo 23:00, 14 February 2015 (UTC)[]
Hey Nemo, I tried looking for the message in Special:AllMessages but I couldn't find it and when you say try grepping en.json, I have many en.json files in the extensions. I am unsure which one you are referring to. Thanks Ben. --Bentstuart1600 (talk) 11:47, 15 February 2015 (UTC)[]
This should help you out of your misery. Cheers --[[kgh]] (talk) 17:49, 30 March 2015 (UTC)[]

How do I just require an e-mail?[edit]

What do I do when I just want to require new users to provide an e-mail-address without making it mandatory to confirm it for editing purposes? --[[kgh]] (talk) 17:42, 30 March 2015 (UTC)[]