8 May 14:41
enable email but disable email change.
From: GF <ganfab@...>
Subject: enable email but disable email change.
Newsgroups: gmane.org.wikimedia.mediawiki
Date: 2008-05-08 12:41:36 GMT
Subject: enable email but disable email change.
Newsgroups: gmane.org.wikimedia.mediawiki
Date: 2008-05-08 12:41:36 GMT
I am creating a custom authentication plugin.
The user email is loaded from an external source and it is stored in the
mediawiki DB.
The problem is that if a user go to his preferences page, it will have the
chance to change his email address.
Looking in specialPreferences.php I have found this:
if ( $wgEnableEmail ) {
$moreEmail = '';
if ($wgEnableUserEmail) {
$emf = wfMsg( 'allowemail' );
$disabled = $disableEmailPrefs ? ' disabled="disabled"' :
'';
$moreEmail =
"<input type='checkbox' $emfc $disabled value='1'
name='wpEmailFlag' id='wpEmailFlag' /> <label
for='wpEmailFlag'>$emf</label>";
}
$wgOut->addHTML(
$this->tableRow( Xml::element( 'h2', null, wfMsg( 'email' )
) ) .
$this->tableRow(
$emailauthenticated.
$enotifrevealaddr.
$enotifwatchlistpages.
$enotifusertalkpages.
(Continue reading)
RSS Feed