Move <br> in other files
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
parent
ea39651af2
commit
37dcc331a6
|
@ -12,7 +12,7 @@ runtime_dir=/var/log/challenges
|
||||||
gpg_home="$runtime_dir"/.gnupg
|
gpg_home="$runtime_dir"/.gnupg
|
||||||
|
|
||||||
urldecode() { : "${*//+/ }"; echo -e "${_//%/\\x}"; }
|
urldecode() { : "${*//+/ }"; echo -e "${_//%/\\x}"; }
|
||||||
sig="$(urldecode "$arg_signature")"
|
sig="$(urldecode "$arg_signature" | sed 's/\r//g')"
|
||||||
key="$(urldecode "$arg_newkey")"
|
key="$(urldecode "$arg_newkey")"
|
||||||
if [[ $arg_username ]]; then
|
if [[ $arg_username ]]; then
|
||||||
keyid="$(gpg --import-options show-only --import "/vm/$arg_username/.pgp.asc" 2>&1 | grep '^ ' | xargs)"
|
keyid="$(gpg --import-options show-only --import "/vm/$arg_username/.pgp.asc" 2>&1 | grep '^ ' | xargs)"
|
||||||
|
@ -106,7 +106,7 @@ case "$arg_method" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
sedcmd=" -e 's/USERNAME/$arg_username/' -e 's/CHALLENGE/$(<$runtime_dir/$arg_username)/' -e 's/KEYID/$keyid/' -e 's\\NAV\\$(php $(dirname $0)/nav.php)\\' -e 's\\FOOTER\\$($(dirname $0)/footer.cgi | sed '1,2d')\\'"
|
sedcmd=" -e 's/USERNAME/$arg_username/' -e 's/CHALLENGE/$(<$runtime_dir/$arg_username)/' -e 's/KEYID/$keyid/' -e 's\\NAV\\$(php $(dirname $0)/nav.php | sed 's/\&/\\\&/g')\\' -e 's\\FOOTER\\$($(dirname $0)/footer.cgi | sed '1,2d')\\'"
|
||||||
sedcmd="$sedcmd $(if [[ $nokey == 1 ]]; then
|
sedcmd="$sedcmd $(if [[ $nokey == 1 ]]; then
|
||||||
printf '%s' '-e "s/NOKEY/This user has no <code>.pgp.asc</code> file/"'
|
printf '%s' '-e "s/NOKEY/This user has no <code>.pgp.asc</code> file/"'
|
||||||
else
|
else
|
||||||
|
|
|
@ -12,21 +12,21 @@
|
||||||
NAV
|
NAV
|
||||||
<div class=h><h1 id=pgp-recovery>PGP-based Account Recovery</h1> <a aria-hidden=true href=#pgp-recovery>#pgp-recovery</a></div>
|
<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>
|
<p>Generate your signature by going into a terminal and running the following:</p>
|
||||||
<pre><code>echo 'CHALLENGE' | gpg -a --detach-sig --default-key KEYID</code></pre>
|
<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">
|
||||||
<input hidden type=text name=method value="submit">
|
<input hidden type=text name=method value="submit">
|
||||||
<p>Username:
|
<p>Username:
|
||||||
<input type=text name=username value=USERNAME>
|
<input type=text name=username value=USERNAME>
|
||||||
<span class=red>NOUSERNOKEY</span></p>
|
<span class=red>NOUSERNOKEY</span></p>
|
||||||
|
|
||||||
<p>New SSH key(s): <span class=red>NOSSHBADSSH</span>
|
<p>New SSH key(s): <span class=red>NOSSHBADSSH</span><br>
|
||||||
<textarea name=newkey rows=3 cols=50></textarea></p>
|
<textarea name=newkey rows=3 cols=50></textarea></p>
|
||||||
<p>Signature: <span class=red>NOSIGBADSIG</span>
|
<p>Signature: <span class=red>NOSIGBADSIG</span><br>
|
||||||
<textarea name=singature rows=10 cols=50></textarea></p>
|
<textarea name=singature rows=15 cols=60></textarea></p>
|
||||||
|
|
||||||
<br>
|
|
||||||
<span><input type=submit value=Submit style="width:100px;height:40px;font-size:20px"></span>
|
<span><input type=submit value=Submit style="width:100px;height:40px;font-size:20px"></span>
|
||||||
</form>
|
</form>
|
||||||
|
<br>
|
||||||
FOOTER
|
FOOTER
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
<div class=h><h1 id=pgp-recovery>PGP-based Account Recovery</h1> <a aria-hidden=true href=#pgp-recovery>#pgp-recovery</a></div>
|
<div class=h><h1 id=pgp-recovery>PGP-based Account Recovery</h1> <a aria-hidden=true href=#pgp-recovery>#pgp-recovery</a></div>
|
||||||
<p>Your new key has successfully been added.</p>
|
<p>Your new key has successfully been added.</p>
|
||||||
<p>You will be redirected back <a href=/en/>home</a> in 5 seconds.</p>
|
<p>You will be redirected back <a href=/en/>home</a> in 5 seconds.</p>
|
||||||
|
<br>
|
||||||
FOOTER
|
FOOTER
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue