X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/c6592045c482d9086d5db6ebab87db49aa85cefa..bf29550db840c97cafffbe1e836750bef6c7942d:/app/controllers/user_controller.rb diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 196d5cea6..b9ed54096 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -16,6 +16,7 @@ class UserController < ApplicationController @user.visible = true @user.data_public = true @user.description = "" if @user.description.nil? + @user.creation_ip = request.remote_ip if @user.save flash[:notice] = "User was successfully created. Check your email for a confirmation note, and you\'ll be mapping in no time :-)
Please note that you won't be able to login until you've received and confirmed your email address."