Set wgOpenIDUseEmailAsNickname True by default

The goal here is to allow mediawiki to create an openid user while
leaving the createaccount permission false.  According to
documentation[1] this settings should do just that.

We want try and keep createaccount set to false, as this will force
users to use openid.

[1] https://www.mediawiki.org/wiki/Extension:OpenID

Change-Id: Id63a33907f326ddc561ec1049dd1766a7319eb9e
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2016-03-04 18:00:41 -05:00
parent 933853e030
commit 46398efa09
1 changed files with 3 additions and 0 deletions

View File

@ -212,6 +212,9 @@ require_once( "$IP/extensions/OpenID/OpenID.php" );
$wgOpenIDOnly = false;
# Automatically mark email addreses provided by openid as verified
$wgOpenIDTrustEmailAddress = true;
# When first-time logging-in with OpenID, use the part before the @ in any given
# e-mail address as the username if a nickname is not given by the OpenID
$wgOpenIDUseEmailAsNickname = true;
# Our servername
$wgTrustRoot = 'https://wiki.openstack.org/';
# Only allow login through launchpad (in earlier versions of the plugin,