commit d95f36a59f1f3cc2e808c9e64e15239528033a25
parent 52498c6d8cae37fb1d824b7e02bb05de793e5b08
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Fri, 2 Dec 2022 06:38:27 -0500
improve UX
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/pkg/web/public/views/pages/sessions-gpg-sign-two-factor.gohtml b/pkg/web/public/views/pages/sessions-gpg-sign-two-factor.gohtml
@@ -24,11 +24,12 @@
<input type="hidden" name="csrf" value="{{ .CSRF }}" />
<input type="hidden" name="formName" value="pgp_step2" />
<div class="form-group">
- <label for="encrypted_message">{{ t "Please sign the following message with your private key and send the signed message" . }}</label>
+ <label for="encrypted_message">{{ t "Please sign the following message with your private key and send the signature" . }}</label>
+ <p><code>gpg --armor --detach-sign file</code></p>
<textarea name="to_be_signed_message" id="to_be_signed_message" rows="4" class="form-control" style="font-family: SFMono-Regular,Menlo,Monaco,Consolas,'Liberation Mono','Courier New',monospace;" readonly>{{ .Data.ToBeSignedMessage }}</textarea>
</div>
<div class="form-group">
- <label for="signed_message">{{ t "Your signed message" . }}</label>
+ <label for="signed_message">{{ t "Message detached signature" . }}</label>
<textarea name="signed_message" id="signed_message" rows="10" class="form-control{{ if .Data.ErrorSignedMessage }} is-invalid{{ end }}" style="font-family: SFMono-Regular,Menlo,Monaco,Consolas,'Liberation Mono','Courier New',monospace;" autofocus>{{ .Data.SignedMessage }}</textarea>
{{ if .Data.ErrorSignedMessage }}
<div class="invalid-feedback">{{ .Data.ErrorSignedMessage }}</div>