b20de505ab
This permits users to easily customize where the ip address should be resolved. When fronting the application with a webserver or load balancer, the ip address may be the server and not be the user. E.g. consider the IP address is passed as the header: "X-Forwarded-For". ```ruby class User devise :trackable protected def extract_ip_from(request) request.headers["X-Forwarded-For"] end end ``` |
||
---|---|---|
.. | ||
authenticatable_test.rb | ||
confirmable_test.rb | ||
database_authenticatable_test.rb | ||
lockable_test.rb | ||
omniauthable_test.rb | ||
recoverable_test.rb | ||
registerable_test.rb | ||
rememberable_test.rb | ||
serializable_test.rb | ||
timeoutable_test.rb | ||
trackable_test.rb | ||
validatable_test.rb |