X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d6b05a8da92af53ed978f32321b2b90fbc4405a6..9b1b6be3719edfe165d5ae1fce502bc6ffb5de24:/app/controllers/user_controller.rb diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index df2a799c3..c658b2014 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."