|
|
@ -28,6 +28,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 |
|
|
|
|
|
|
|