forro

Forro is a end-to-end encrypted contract form based on PGP.
git clone git://git.defalsify.org/forro.git
Log | Files | Refs | LICENSE

commit c6705efea720d39e09dfeea5e0bcba2ef999d921
parent 5d82324ddc5db2cdbf023a1ef93f8a66897e46fb
Author: lash <dev@holbrook.no>
Date:   Fri, 25 Aug 2023 16:37:36 +0100

Ensure private key is downloadable upon creation

Diffstat:
MCHANGELOG | 4++++
Mindex.html | 9+++------
Mpackage.json | 2+-
Mtop.js | 2+-
4 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG @@ -1,3 +1,7 @@ +- 0.1.0 + * Ensure private key is downloadable when created +- 0.0.9 + * Update forro repo link in heading - 0.0.8 * Private key link returns encrypted armor key * Override email sender and sender name through settings diff --git a/index.html b/index.html @@ -204,9 +204,7 @@ filez: {}, get localKeyArmor() { - let k = getEncryptedKey(); - //return 'data:text/plain;charset=utf8,' + this.key_content; - return 'data:text/plain;charset=utf8,' + k; + return 'data:text/plain;charset=utf8,' + this.key_content; }, get localKeyFilename() { return 'privatekey_' + this.key + '.asc'; @@ -255,7 +253,7 @@ rkey_name = $event.detail.nr; if (checkState(STATE["LOCAL_KEY"])) { - if (key_content == "") { + if (key_content == "" | key_content == null) { key_content = g_local_key.armor(); } } @@ -268,8 +266,7 @@ purgeFiles(); document.getElementById("fileAdder").value=""; } - ' - > + '> <dl> <dt>Status:</dt> <dd x-text="message_status" x-on:messagestatechange.window="defaultname = !g_local_key_identified;"></dd> diff --git a/package.json b/package.json @@ -1,6 +1,6 @@ { "name": "forro", - "version": "0.0.9", + "version": "0.1.0rc1", "license": "GPLv3", "author": "Louis Holbrook <dev@holbrook.no> (https://holbrook.no)", "dependencies": { diff --git a/top.js b/top.js @@ -40,6 +40,6 @@ let g_state = 0; let g_helpstate = 0; let g_counter = undefined; let g_files = {}; -let g_version = '0.0.9'; +let g_version = '0.1.0rc1'; let g_from = 'no-reply@localhost'; let g_from_name = 'Forro v' + g_version;