mirror of
https://github.com/librecaptcha/lc-core.git
synced 2025-01-13 06:53:19 -05:00
Debug Captcha: Print mismatches
Signed-off-by: hrj <harshad.rj@gmail.com>
This commit is contained in:
parent
8fd294f0cf
commit
660447798f
@ -33,7 +33,11 @@ class DebugCaptcha extends ChallengeProvider {
|
||||
}
|
||||
|
||||
def checkAnswer(secret: String, answer: String): Boolean = {
|
||||
answer.toLowerCase().equals(secret)
|
||||
val matches = answer.toLowerCase().replaceAll(" ", "").equals(secret)
|
||||
if (!matches) {
|
||||
println(s"Didn't match, answer: '$answer' to secret '$secret'")
|
||||
}
|
||||
matches
|
||||
}
|
||||
|
||||
private def simpleText(text: String): Array[Byte] = {
|
||||
|
Loading…
Reference in New Issue
Block a user