6

Integrate ReCaptcha in Lift application

 3 years ago
source link: https://blog.knoldus.com/integrate-recaptcha-in-lift-application/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Integrate ReCaptcha in Lift application

Reading Time: < 1 minute

ReCaptcha is a free CAPTCHA service which provides the strong security to application. In this blog we will learn how to integrate ReCaptcha in Lift-Scala application on lift-ajax form.

  • Add following dependency in build.sbt
xxxxxxxxxx
"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:
xxxxxxxxxx
#Re-captcha
recaptcha.publicKey=<public key>
recaptcha.privateKey=<private key>
  • Now, you can use Captcha in your application.

To see full example:


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK