Skip to content

Commit

Permalink
webservice MDL-20805 add token authentication method to test client (…
Browse files Browse the repository at this point in the history
…+ use token constant) - forgot a file
  • Loading branch information
mouneyrac committed Jan 13, 2010
1 parent bff11d2 commit 2e74c15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/adminlib.php
Expand Up @@ -6495,7 +6495,7 @@ public function output_html($data, $query='') {
FROM
{external_tokens} token, {user} user, {external_services} service
WHERE
token.creatorid=? AND token.tokentype = 2 AND service.id = token.externalserviceid AND token.userid = user.id";
token.creatorid=? AND token.tokentype = ".EXTERNAL_TOKEN_PERMANENT." AND service.id = token.externalserviceid AND token.userid = user.id";
$tokens = $DB->get_records_sql($sql, array( $USER->id));
if (!empty($tokens)) {
foreach ($tokens as $token) {
Expand Down

0 comments on commit 2e74c15

Please sign in to comment.