mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 10:59:51 +08:00
FIX: use 'request.remote_ip' instead of 'request.ip' for better consistency
This commit is contained in:
parent
a799f6f8d9
commit
1ec73b5ba0
|
@ -609,13 +609,8 @@ class UsersController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def user_params
|
def user_params
|
||||||
params.permit(
|
params.permit(:name, :email, :password, :username, :active)
|
||||||
:name,
|
.merge(ip_address: request.remote_ip, registration_ip_address: request.remote_ip)
|
||||||
:email,
|
|
||||||
:password,
|
|
||||||
:username,
|
|
||||||
:active
|
|
||||||
).merge(ip_address: request.ip, registration_ip_address: request.ip)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def fail_with(key)
|
def fail_with(key)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user