Skip to content

Commit

Permalink
MDL-74947 mod_lti: remove text validation from password field
Browse files Browse the repository at this point in the history
This is a password field so should not be cleaned.
  • Loading branch information
snake committed Jul 11, 2022
1 parent d069cb9 commit 25a9d27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/lti/edit_form.php
Expand Up @@ -114,7 +114,7 @@ public function definition() {
$mform->setForceLtr('lti_resourcekey');

$mform->addElement('passwordunmask', 'lti_password', get_string('password_admin', 'lti'));
$mform->setType('lti_password', PARAM_TEXT);
$mform->setType('lti_password', PARAM_RAW);
$mform->addHelpButton('lti_password', 'password_admin', 'lti');
$mform->hideIf('lti_password', 'lti_ltiversion', 'eq', LTI_VERSION_1P3);

Expand Down

0 comments on commit 25a9d27

Please sign in to comment.