diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 83c414ef2..94a3e1142 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -18,6 +18,15 @@ class UserController < ApplicationController cache_sweeper :user_sweeper, :only => [:account, :hide, :unhide, :delete] + def terms + @title = t 'user.new.title' + @user = User.new(params[:user]) + + if @user.invalid? + render :action => 'new' + end + end + def save @title = t 'user.new.title' @@ -31,6 +40,7 @@ class UserController < ApplicationController @user.description = "" if @user.description.nil? @user.creation_ip = request.remote_ip @user.languages = request.user_preferred_languages + @user.terms_agreed = Time.now.getutc if @user.save flash[:notice] = t 'user.new.flash create success message' @@ -209,8 +219,6 @@ class UserController < ApplicationController @user = token.user @user.active = true @user.email_valid = true - @user.terms_agreed = Time.now.getutc - @user.consider_pd = true if params[:consider_pd] @user.save! referer = token.referer token.destroy diff --git a/app/views/user/confirm.html.erb b/app/views/user/confirm.html.erb index 068e6eeee..5a4106ee3 100644 --- a/app/views/user/confirm.html.erb +++ b/app/views/user/confirm.html.erb @@ -2,47 +2,9 @@
<%= t 'user.confirm.press confirm button' %>
-<%= t 'legal.contributor_terms.intro' %>
-<%= t 'legal.contributor_terms.section_1' %>
-<%= t 'legal.contributor_terms.section_2' %>
-<%= t 'legal.contributor_terms.section_3' %>
-<%= t 'legal.contributor_terms.active_defn_1' %>
-<%= t 'legal.contributor_terms.active_defn_2' %>
-<%= t 'legal.contributor_terms.section_4' %>
-<%= t 'legal.contributor_terms.section_5' %>
-<%= t 'legal.contributor_terms.section_6' %>
-<%= t 'legal.contributor_terms.section_6_1' %>
<%= t 'legal.contributor_terms.section_6_2' %>
<%= t 'legal.contributor_terms.section_7' %>
-<%= t 'user.new.email address' %> | <%= text_field('user', 'email',{:size => 50, :maxlength => 255, :tabindex => 1}) %> |