diff options
author | Thibaut Girka <thib@sitedethib.com> | 2019-02-15 18:02:45 +0100 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2019-02-15 18:02:45 +0100 |
commit | 06cc04fd239896d294210b8bbaadb7c611aaffe5 (patch) | |
tree | 1868711bbe9ee79b25ff10a585457cfa0f9ac121 /app/controllers | |
parent | 2769b5446681898e8332cb505f499dac2a6e5717 (diff) | |
parent | 8ef50706a11e115e8b4aa31b30de93738bc7e754 (diff) |
Merge branch 'master' into glitch-soc/merge-upstream
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/auth/registrations_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/auth/registrations_controller.rb b/app/controllers/auth/registrations_controller.rb index 11436d7c5..efe29b53f 100644 --- a/app/controllers/auth/registrations_controller.rb +++ b/app/controllers/auth/registrations_controller.rb @@ -29,6 +29,7 @@ class Auth::RegistrationsController < Devise::RegistrationsController resource.invite_code = params[:invite_code] if resource.invite_code.blank? resource.agreement = true + resource.current_sign_in_ip = request.remote_ip if resource.current_sign_in_ip.nil? resource.build_account if resource.account.nil? end |