From 2e74c15aa6a2cf19b82c678ddf439eb0fe0a8dad Mon Sep 17 00:00:00 2001 From: jerome mouneyrac Date: Wed, 13 Jan 2010 10:15:58 +0000 Subject: [PATCH] webservice MDL-20805 add token authentication method to test client (+ use token constant) - forgot a file --- lib/adminlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/adminlib.php b/lib/adminlib.php index 4d6144ee37..216eed2c1e 100644 --- a/lib/adminlib.php +++ b/lib/adminlib.php @@ -6495,7 +6495,7 @@ class admin_setting_managewebservicetokens extends admin_setting { 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) { -- 2.39.5