From 32c5e2dfca43a151fe8472ab395136550df153de Mon Sep 17 00:00:00 2001 From: Thomas Lynch Date: Sat, 29 Apr 2023 22:57:34 +1000 Subject: [PATCH] Fix using incorrect prompt for noscript sha256 vs argon2 --- src/lua/scripts/bot-check.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lua/scripts/bot-check.lua b/src/lua/scripts/bot-check.lua index 09bd7eb..8ce7643 100644 --- a/src/lua/scripts/bot-check.lua +++ b/src/lua/scripts/bot-check.lua @@ -175,15 +175,18 @@ function _M.view(applet) ll["This process is automatic, please wait a moment..."] ) local noscript_extra + local noscript_prompt if pow_type == "argon2" then noscript_extra = templates.noscript_extra_argon2 + noscript_prompt = ll["Run this in a linux terminal (requires argon2 package installed):"] else noscript_extra = templates.noscript_extra_sha256 + noscript_prompt = ll["Run this in a linux terminal (requires perl):"] end noscript_extra_body = string.format( noscript_extra, ll["No JavaScript?"], - ll["Run this in a linux terminal (requires perl):"], + noscript_prompt, user_key, challenge_hash, expiry,