Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
abdumu committed May 24, 2019
1 parent be19b85 commit 99e5ba5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion init.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// who wrote this plugin?
'plugin_developer' => 'kleeja.com',
// this plugin version
'plugin_version' => '1.0.1',
'plugin_version' => '1.0.3',
// explain what is this plugin, why should i use it?
'plugin_description' => [
'en' => 'phpBB Membership Integration',
Expand Down
4 changes: 2 additions & 2 deletions phpbb.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function phpbb_auth_login($name, $pass, $hashed = false, $expire, $loginadm = fa
. ($hashed ? 'userid' : 'username') . '=' . urlencode($name) . '&pass=' . urlencode(base64_encode($pass));

//if only username, let's add it to the query
$api_http_query .= $return_username ? '&return_username=1' : '';
// $api_http_query .= $return_username ? '&return_username=1' : '';


//get it
Expand Down Expand Up @@ -102,7 +102,7 @@ function phpbb_auth_login($name, $pass, $hashed = false, $expire, $loginadm = fa
//
if ($return_username)
{
return $userinfo['id'];
return $userinfo['name'];
}

//
Expand Down

0 comments on commit 99e5ba5

Please sign in to comment.