debug catpcha: only use alphabets

Signed-off-by: hrj <harshad.rj@gmail.com>
This commit is contained in:
hrj
2021-04-13 12:36:30 +05:30
parent 332bb2113b
commit 954399042c
2 changed files with 12 additions and 4 deletions

View File

@@ -58,7 +58,7 @@ class DebugCaptcha extends ChallengeProvider {
}
def returnChallenge(): Challenge = {
val secret = HelperFunctions.randomString(6)
val secret = HelperFunctions.randomString(6, HelperFunctions.alphabets)
new Challenge(simpleText(secret), "image/png", secret.toLowerCase())
}
}