Permalink
Browse files

adding the verify captcha call.

  • Loading branch information...
erik
erik committed Jul 26, 2012
1 parent e870c23 commit 699ec45a27eb6f3cdce325d4a2c7bd612d4d3a48
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/users_controller.rb
@@ -45,7 +45,7 @@ def create
return_path = params[:return_to] if params[:return_to] && params[:spotus_lite]
return_path = URI.decode(cookies[:return_to]) if cookies[:return_to]
return_path = session[:return_to] if session[:return_to]
- if @user.save
+ if verify_recaptcha(:model => @user, :message => "You did not specify a proper captcha.") &&@user.save
unless @user.organization?
@user.activate!
self.current_user = @user

0 comments on commit 699ec45

Please sign in to comment.