Submit passphrases and passwords in base64 format

This commit is contained in:
bergware
2019-11-02 22:21:53 +01:00
parent f4a2e51178
commit ce936c24d0

View File

@@ -130,9 +130,8 @@ function prepareInput(form) {
form.file.disabled = true;
form.text.disabled = true;
form.copy.disabled = true;
var text = base64(form.text.value);
if (text) {
$(form).append('<input type="hidden" name="luksKey" value="'+text+'">');
if (form.text.value) {
$(form).append('<input type="hidden" name="luksKey" value="'+base64(form.text.value)+'">');
form.submit();
return;
}