aboutsummaryrefslogtreecommitdiff
path: root/modules/pkgs/mediawikiExtensions
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2016-12-24 16:01:47 +0300
committerIgor Pashev <pashev.igor@gmail.com>2016-12-24 16:01:47 +0300
commite49da4fadc926a8ce04e193303f8698eee27a69c (patch)
treefd5a185972e61021f4132edb323978af36be446b /modules/pkgs/mediawikiExtensions
parente03de35c3db3eda080bd5919b6f5712d6f30fcfb (diff)
downloadnixsap-e49da4fadc926a8ce04e193303f8698eee27a69c.tar.gz
Mediwiki Sproxy: user_name == user_email
Diffstat (limited to 'modules/pkgs/mediawikiExtensions')
-rw-r--r--modules/pkgs/mediawikiExtensions/Sproxy/Sproxy.php11
1 files changed, 1 insertions, 10 deletions
diff --git a/modules/pkgs/mediawikiExtensions/Sproxy/Sproxy.php b/modules/pkgs/mediawikiExtensions/Sproxy/Sproxy.php
index 697c596..c16ac9e 100644
--- a/modules/pkgs/mediawikiExtensions/Sproxy/Sproxy.php
+++ b/modules/pkgs/mediawikiExtensions/Sproxy/Sproxy.php
@@ -118,16 +118,7 @@ function sproxy_email()
function sproxy_username()
{
- // We can't rely on X-Given-Name/X-Family name because they can be
- // set by the user. I've personally seen someone set their name to
- // "ZALORA".
- //
- // Instead, we'll try to extract the real name from the first part
- // of the email address.
- list($username, $_) = explode('@', sproxy_email());
- // So we have something like firstname.lastname or firstname.l or
- // firstname.
- return $username;
+ return sproxy_email();
}
function sproxy_real_name()