mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
webservice MDL-20805 add token authentication method to test client (+ use token constant) - forgot a file
This commit is contained in:
parent
bff11d2953
commit
2e74c15aa6
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user