]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_controller.rb
Log the IP address used to create an account.
[rails.git] / app / controllers / user_controller.rb
index df2a799c35c8aa6ccfe4a92e1b1e3f736e3f10b9..c658b201412a5bf2dda750e292458b38c945c1aa 100644 (file)
@@ -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 :-)<br>Please note that you won't be able to login until you've received and confirmed your email address."