Hi all,
I have a fully functioning rails app with authlogic and openid as per railscasts episode 170 (http://railscasts.com/episodes/170-openid-with-authlogic). The problem comes when I want to add recaptcha and a user signs up with openid.
Apparently the verify_recaptcha method overrides the openid parameters. There must be a way to get openid to work with the verify_recaptcha method in the create model. Any ideas?
Flawed Code:
if verify_recaptcha(:model => @person, :message => "Your reCAPTCHA code was incorrect!")
@person.save do |result| #respond_to do |format|
if result #@person.save
flash[:notice] = 'Thank you for signing up! You are now logged in.'
redirect_to(root_url)
else
render :action => "new"
end
end
else
render :action => "new"
end #verify_recaptcha
Thank you and let me know if you have any questions!