- Add following dependency in build.sbt
"net.tanesha.recaptcha4j" % "recaptcha4j" % "0.0.7"
- Put ReCaptcha.scala file in your project from my gist
- Create account on ReCaptcha to get the public and private key for your domain
- Put public and private key in your properties file:
#Re-captcha recaptcha.publicKey=<public key> recaptcha.privateKey=<private key>
- Now, you can use Captcha in your application.
To see full example:
- Clone code from here : https://github.com/ruchiagarwal-knoldus/Lift-Captcha-Demo
- Run : sbt ~container:start
- Go to http://localhost:8080