mirror of
https://gitgud.io/fatchan/haproxy-protection.git
synced 2025-05-09 02:05:37 +00:00
Fix using incorrect prompt for noscript sha256 vs argon2
This commit is contained in:
@ -175,15 +175,18 @@ function _M.view(applet)
|
|||||||
ll["This process is automatic, please wait a moment..."]
|
ll["This process is automatic, please wait a moment..."]
|
||||||
)
|
)
|
||||||
local noscript_extra
|
local noscript_extra
|
||||||
|
local noscript_prompt
|
||||||
if pow_type == "argon2" then
|
if pow_type == "argon2" then
|
||||||
noscript_extra = templates.noscript_extra_argon2
|
noscript_extra = templates.noscript_extra_argon2
|
||||||
|
noscript_prompt = ll["Run this in a linux terminal (requires <code>argon2</code> package installed):"]
|
||||||
else
|
else
|
||||||
noscript_extra = templates.noscript_extra_sha256
|
noscript_extra = templates.noscript_extra_sha256
|
||||||
|
noscript_prompt = ll["Run this in a linux terminal (requires <code>perl</code>):"]
|
||||||
end
|
end
|
||||||
noscript_extra_body = string.format(
|
noscript_extra_body = string.format(
|
||||||
noscript_extra,
|
noscript_extra,
|
||||||
ll["No JavaScript?"],
|
ll["No JavaScript?"],
|
||||||
ll["Run this in a linux terminal (requires <code>perl</code>):"],
|
noscript_prompt,
|
||||||
user_key,
|
user_key,
|
||||||
challenge_hash,
|
challenge_hash,
|
||||||
expiry,
|
expiry,
|
||||||
|
Reference in New Issue
Block a user