aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/user_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/user_controller.rb')
-rw-r--r--app/controllers/user_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb
index 403cb9684..4356b377f 100644
--- a/app/controllers/user_controller.rb
+++ b/app/controllers/user_controller.rb
@@ -154,7 +154,8 @@ class UserController < ApplicationController
flash.now[:error] = _("There was an error with the words you entered, please try again.")
error = true
end
- if error || !@user_signup.valid?
+ if error || !@user_signup.valid? || params[:toc]!='1'
+ @user_signup.errors.add(:toc, _("Por favor confirme que ha leído las Condiciones de Uso.")) if params[:toc]!='1'
# Show the form
render :action => 'sign'
else