Browse Source

small fixes

master
forest 3 months ago
parent
commit
a5363baf72
3 changed files with 4 additions and 4 deletions
  1. +1
    -1
      build-docker.sh
  2. +2
    -2
      disallowbots.gotemplate.html
  3. +1
    -1
      main.go

+ 1
- 1
build-docker.sh View File

@ -1,6 +1,6 @@
#!/bin/bash -e
VERSION="0.2.3"
VERSION="0.2.3-test1"
rm -rf dockerbuild || true
mkdir dockerbuild


+ 2
- 2
disallowbots.gotemplate.html View File

@ -7,7 +7,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="/static/application.css">
<link rel="stylesheet" type="text/css" href="{{ .CaptchaURL }}/static/captcha.css">
<script src="{{ .CaptchaURL }}/static/captcha.js"></script>
<script src="{{ .CaptchaURL }}/static/captcha.js?v=2"></script>
</head>
<body>
@ -21,7 +21,7 @@
<div class="splash content">
<h3>Please wait for a moment...</h3>
<form method="POST" action="" style="font-size: 13px;">
<form method="POST" action="" style="font-size: 11px;">
<input type="hidden" name="challenge" value="{{ .Challenge }}" />
<input type="hidden" name="nonce" />
<div class="captcha-container"


+ 1
- 1
main.go View File

@ -581,7 +581,7 @@ func validateCaptcha(apiToken, challenge, nonce string) error {
}
if response.StatusCode != 200 {
return errors.New("proof of work captcha validation failed")
return errors.New("proof of work captcha validation failed. please try again.")
}
return nil
}

Loading…
Cancel
Save