From bab38eeacddca98915f0cdc958bde5022d2800cf Mon Sep 17 00:00:00 2001 From: bergware Date: Thu, 17 Aug 2017 00:25:41 +0200 Subject: [PATCH] Add retype passphrase to encryptiom settings --- plugins/dynamix/EncryptionSettings.page | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/plugins/dynamix/EncryptionSettings.page b/plugins/dynamix/EncryptionSettings.page index 7b743bdb7..2a25a6045 100644 --- a/plugins/dynamix/EncryptionSettings.page +++ b/plugins/dynamix/EncryptionSettings.page @@ -39,19 +39,22 @@ function checkInput(form) { function selectInput(form) { if (form.input.value == 'text') { form.file.value = ''; + form.local.value = ''; $('#text').show(); $('#file').hide(); } else { form.text.value = ''; + form.textConf.value = ''; $('#text').hide(); $('#file').show(); } + form.apply.disabled = true; } function showPass(checked) { - $('input[name="text"').attr('type',checked ? 'text' : 'password'); + $('input[name="text"],input[name="textConf"]').attr('type',checked ? 'text' : 'password'); } function getFileContent(event,form) { var input = event.target; var reader = new FileReader(); - reader.onload = function(){form.file.value = reader.result;}; + reader.onload = function(){form.file.value = reader.result; form.apply.disabled = false;}; reader.readAsText(input.files[0]); } @@ -89,20 +92,23 @@ Encryption input: > The array will **not** start automatically when encrypted volumes are present.
-Enter passphrase: -: >show passphrase +Passphrase: +: >show passphrase -> Enter a secure passphrase as encryption key. **Memorize** this passphrase, if lost device content can not be recovered. +Retype passphrase: +: onKeyUp="this.form.apply.disabled=(this.form.text.value!=this.form.textConf.value)"> + +> Enter a secure passphrase as encryption key. The passphrase can be up to 512 characters. **Memorize** this passphrase, if lost device content can not be recovered.
-: Array must be Stopped to change +: Array must be Stopped to change