MDL-73295 webservice: only pass around sesskey for tokens as needed.

This commit is contained in:
Paul Holden
2021-12-29 09:54:23 +00:00
parent f8eb36373d
commit d4bd398ad7
8 changed files with 23 additions and 28 deletions
+1 -1
View File
@@ -10198,7 +10198,7 @@ class admin_setting_webservicesoverview extends admin_setting {
/// 8. Create token for the specific user
$row = array();
$url = new moodle_url("/admin/webservice/tokens.php?sesskey=" . sesskey() . "&action=create");
$url = new moodle_url('/admin/webservice/tokens.php', ['action' => 'create']);
$row[0] = "8. " . html_writer::tag('a', get_string('createtokenforuser', 'webservice'),
array('href' => $url));
$row[1] = "";