From acee2dbd4865fde94cada26f631c991812def0eb Mon Sep 17 00:00:00 2001 From: Banakin Date: Thu, 27 Aug 2020 13:15:29 -0400 Subject: [PATCH] V 1.1 --- README.md | 1 + src/SteamAuth.php | 11 +++++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f1d3671..b46efe6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # SteamAuth +[![PHP Lint](https://github.com/Banakin/SteamAuth/workflows/PHP%20Lint/badge.svg)](https://github.com/Banakin/SteamAuth/actions) **SteamAuth** is a MediaWiki extension that allows users to sign in with Steam. The plugin uses [PluggableAuth](https://www.mediawiki.org/wiki/Extension:PluggableAuth). diff --git a/src/SteamAuth.php b/src/SteamAuth.php index 1312e08..50c05ef 100644 --- a/src/SteamAuth.php +++ b/src/SteamAuth.php @@ -70,9 +70,9 @@ public function authenticate( &$id, &$username, &$realname, &$email, &$errorMess if ($hasgame) { // Log user in if they have the game $id = $player->steamid; - $username = $player->personaname; - $realname = NULL; - $email = NULL; + $username = $player->steamid; + $realname = $player->personaname; + return true; } else { // Don't log the user in if they dont have the game @@ -82,9 +82,8 @@ public function authenticate( &$id, &$username, &$realname, &$email, &$errorMess } else { // If the appid has not been specified then log the user in $id = $player->steamid; - $username = $player->personaname; - $realname = NULL; - $email = NULL; + $username = $player->steamid; + $realname = $player->personaname; return true; }