This is an automated email from the ASF dual-hosted git repository. clr pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push: new 5802dab Signature not armored (#142) 5802dab is described below commit 5802dab2e82bed39e6518e0bea4bc7fcb410bd9b Author: Craig L Russell <apache....@gmail.com> AuthorDate: Wed Mar 30 08:33:46 2022 -0700 Signature not armored (#142) * Update parts.js.rb Add "gpg signature not armored" * Update incomplete.json.rb * Update incomplete.json.rb Update description for signature not armored --- www/secretary/workbench/views/actions/incomplete.json.rb | 1 + www/secretary/workbench/views/parts.js.rb | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/www/secretary/workbench/views/actions/incomplete.json.rb b/www/secretary/workbench/views/actions/incomplete.json.rb index 4198543..31a3fc7 100644 --- a/www/secretary/workbench/views/actions/incomplete.json.rb +++ b/www/secretary/workbench/views/actions/incomplete.json.rb @@ -23,6 +23,7 @@ REASONS = { '@unreadable_scan' => 'the scan is not readable or not complete', '@wrong_identity' => 'the public key does not match the name/email on the form', '@validation_failed' => 'gpg validation failed', + '@signature_not_armored' => 'gpg signature must be detached and ascii-armored', } # send rejection email diff --git a/www/secretary/workbench/views/parts.js.rb b/www/secretary/workbench/views/parts.js.rb index bcca669..42efe0f 100644 --- a/www/secretary/workbench/views/parts.js.rb +++ b/www/secretary/workbench/views/parts.js.rb @@ -22,6 +22,7 @@ class Parts < Vue @unreadable_scan = false @wrong_identity = false @validation_failed = false + @signature_not_armored = false end ######################################################################## @@ -194,6 +195,7 @@ class Parts < Vue _input type: 'hidden', name: 'unreadable_scan', value: @unreadable_scan _input type: 'hidden', name: 'wrong_identity', value: @wrong_identity _input type: 'hidden', name: 'validation_failed', value: @validation_failed + _input type: 'hidden', name: 'signature_not_armored', value: @signature_not_armored # Defer processing (must be part of POST block) @@ -295,6 +297,13 @@ class Parts < Vue _span ' gpg key validation failed' end end + _li do + _label do + _input type: 'checkbox', checked: @signature_not_armored, + onClick: -> {@signature_not_armored = !@signature_not_armored} + _span ' gpg signature not armored' + end + end end _label do