Skip to content

Instantly share code, notes, and snippets.

@moskalenko
Created July 26, 2018 14:46
Show Gist options
  • Save moskalenko/7856722a352ed23f445991dd378c6047 to your computer and use it in GitHub Desktop.
Save moskalenko/7856722a352ed23f445991dd378c6047 to your computer and use it in GitHub Desktop.
$wgAuthRemoteuserUserName = function() {
$credentials = explode( ':',$_SERVER['REMOTE_USER_DATA']);
$username = ucfirst($credentials[0]);
return $username ? $username : "";
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment