]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_controller.rb
Initial version of contributor terms changes.
[rails.git] / app / controllers / user_controller.rb
index 9551ac6d8fbdd1e21524a6d1f7065f079c7618b9..83c414ef2ccb1fecabd2b757f92f2ad52669b868 100644 (file)
@@ -209,6 +209,8 @@ 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