File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
app/code/Magento/EncryptionKey
Block/Adminhtml/Crypt/Key
Controller/Adminhtml/Crypt/Key Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -40,9 +40,9 @@ protected function _prepareForm()
40
40
'name ' => 'generate_random ' ,
41
41
'label ' => __ ('Auto-generate a Key ' ),
42
42
'options ' => [0 => __ ('No ' ), 1 => __ ('Yes ' )],
43
- 'onclick ' => "var cryptKey = $(' crypt_key'); cryptKey.disabled = this.value == 1; " .
44
- "if (cryptKey.disabled) {cryptKey.parentNode.parentNode .hide();} " .
45
- "else {cryptKey.parentNode.parentNode .show();} " ,
43
+ 'onclick ' => "var cryptKey = jQuery('# crypt_key'); cryptKey.disabled = this.value == 1; " .
44
+ "if (cryptKey.disabled) {cryptKey.parent().parent() .hide();} " .
45
+ "else {cryptKey.parent().parent() .show();} " ,
46
46
'note ' => __ ('The generated key will be displayed after changing. ' )
47
47
]
48
48
);
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ public function execute()
69
69
if (!$ key ) {
70
70
$ this ->messageManager ->addNoticeMessage (
71
71
__ (
72
- 'This is your new encryption key: <span style="font-family:monospace;">%1</span> . ' .
72
+ 'This is your new encryption key: %1 . ' .
73
73
'Be sure to write it down and take good care of it! ' ,
74
74
$ newKey
75
75
)
You can’t perform that action at this time.
0 commit comments