Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
MDL-55592 lti: Forget the key and secret
When the "Enter your consumer key and shared secret" form is displayed,
it should not contain the same values it had the last time it was opened.
  • Loading branch information
Damyon Wiese committed May 29, 2019
1 parent 3bbf743 commit 4bafd61
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mod/lti/amd/build/tool_configure_controller.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions mod/lti/amd/src/tool_configure_controller.js
Expand Up @@ -162,9 +162,12 @@ define(['jquery', 'core/ajax', 'core/notification', 'core/templates', 'mod_lti/e
var showCartridgeRegistration = function(url) {
hideExternalRegistration();
hideRegistrationChoices();
getCartridgeRegistrationContainer().removeClass('hidden');
getCartridgeRegistrationContainer().find(SELECTORS.CARTRIDGE_REGISTRATION_FORM).attr('data-cartridge-url', url);
screenReaderAnnounce(getCartridgeRegistrationContainer());
// Don't save the key and secret from the last tool.
var container = getCartridgeRegistrationContainer();
container.find('input').val('');
container.removeClass('hidden');
container.find(SELECTORS.CARTRIDGE_REGISTRATION_FORM).attr('data-cartridge-url', url);
screenReaderAnnounce(container);
};

/**
Expand Down

0 comments on commit 4bafd61

Please sign in to comment.