Skip to content

Commit

Permalink
Merge branch 'andrew/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason L Perry committed May 15, 2008
2 parents 1b77526 + 02e8814 commit d450590
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/recaptcha.rb
Expand Up @@ -51,6 +51,7 @@ def verify_recaptcha(model = nil)
answer, error = recaptcha.body.split.map(&:chomp)
unless answer == 'true'
session[:recaptcha_error] = error
model.valid? if model
model.errors.add_to_base "Captcha response is incorrect, please try again." if model
return false
else
Expand Down

0 comments on commit d450590

Please sign in to comment.