gpg-recovery should point to itself, else 404

I have modified the templates to point to the gpg-recovery, as they
pointed to a 404 and your browser posts to such a 404, which won't
work.
The gpg-recovery program should support some kind of template to point
to itself, to make our lives easier, and remove the possibility of human
error, as the script can know the full URL it's being called at, but it
doesn't.
This commit is contained in:
Julian Marcos 2023-11-25 10:50:13 +01:00
parent e1cd5ce441
commit 28f58f53ce
Signed by untrusted user who does not match committer: jmjl
GPG Key ID: 33A8988F3B9067A0
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@
NAV
<div class=h><h1 id=pgp-recovery>PGP-based Account Recovery</h1> <a aria-hidden=true href=#pgp-recovery>#pgp-recovery</a></div>
<p>Fill out this form, and follow the steps given.</p>
<form method="post" action="/en/recovery-challenge">
<form method="post" action="/en/recovery-challenge.cgi">
<input hidden type=text name=method value="generate">
<p>Username:
<input type=text name=username>

View File

@ -13,7 +13,7 @@
<div class=h><h1 id=pgp-recovery>PGP-based Account Recovery</h1> <a aria-hidden=true href=#pgp-recovery>#pgp-recovery</a></div>
<p>Generate your signature by going into a terminal and running the following:</p>
<pre style='white-space:pre-line;word-break:keep-all;'><code>echo 'CHALLENGE' | gpg -a --detach-sig --default-key KEYID</code></pre>
<form method="post" action="/en/recovery-challenge">
<form method="post" action="/en/recovery-challenge.cgi">
<input hidden type=text name=method value="submit">
<p>Username:
<input type=text name=username value=USERNAME>