From 46398efa09f63dc59dc4b32de90e8fde29f58794 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Fri, 4 Mar 2016 18:00:41 -0500 Subject: [PATCH] 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 --- templates/Settings.php.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/Settings.php.erb b/templates/Settings.php.erb index a5c4a0f..7a00559 100644 --- a/templates/Settings.php.erb +++ b/templates/Settings.php.erb @@ -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,