aboutsummaryrefslogtreecommitdiff
path: root/classes/standard_forms.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/standard_forms.php')
-rw-r--r--classes/standard_forms.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/classes/standard_forms.php b/classes/standard_forms.php
index ab0cd18..cb985bf 100644
--- a/classes/standard_forms.php
+++ b/classes/standard_forms.php
@@ -65,6 +65,7 @@ class token_editor_form extends moodleform {
/* Entry element of the token */
$mform->addElement("text", "token", new lang_string("password", "moodle"));
$mform->addRule("token", null, "required");
+ $mform->setDefault("token", generate_password(12));
$mform->setType("token", PARAM_NOTAGS);
/* State switching element */