diff --git a/init.php b/init.php index e2ad50b..0e2a435 100644 --- a/init.php +++ b/init.php @@ -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', diff --git a/phpbb.php b/phpbb.php index c8e6ef8..9bf91f4 100755 --- a/phpbb.php +++ b/phpbb.php @@ -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 @@ -102,7 +102,7 @@ function phpbb_auth_login($name, $pass, $hashed = false, $expire, $loginadm = fa // if ($return_username) { - return $userinfo['id']; + return $userinfo['name']; } //