login token lookup RPC: return team name also

This commit is contained in:
David Anderson 2017-11-15 00:45:47 -08:00
parent 45a8dce80f
commit 97ae786d3d
1 changed files with 6 additions and 1 deletions

View File

@ -40,7 +40,12 @@ function main() {
echo "<login_token_reply>
<weak_auth>$auth</weak_auth>
<user_name>$name</user_name>
</login_token_reply>
";
if ($user->teamid && $team == BoincTeam::lookup_id($user->teamid)) {
$name = htmlentities($team->name);
echo " <team_name>$name</team_name>\n";
}
echo "</login_token_reply>
";
}