Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
V 1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Banakin committed Aug 27, 2020
1 parent 7f872da commit acee2db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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).

Expand Down
11 changes: 5 additions & 6 deletions src/SteamAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
}
Expand Down

0 comments on commit acee2db

Please sign in to comment.