From 2c4c05acd61c97f94dc9479169d1a36db1473abf Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Oct 2017 07:50:30 +0400 Subject: The form for the security key has been added --- classes/forms.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/classes/forms.php b/classes/forms.php index d6402cc..9a7d6a1 100644 --- a/classes/forms.php +++ b/classes/forms.php @@ -87,6 +87,12 @@ class service_edit_form extends moodleform { $mform->setDefault("enable", 1); $mform->setAdvanced("enable"); + /* Token */ + $mform->addElement("text", "token", + new lang_string("token", "webservice"), + array("size" => 60)); + $mform->setType("token", PARAM_NOTAGS); + /* Form heading */ $mform->addElement("header", "editserviceheaderevent", new lang_string("edulevel", "moodle")); -- cgit v1.2.3