Removed hostnames from user profiles.
This commit is contained in:
@@ -22,12 +22,6 @@ class UsersController < ApplicationController
|
||||
flash.now[:alert] = "An error occured while checking if this user is banned from the server!"
|
||||
@ban_json = nil
|
||||
end
|
||||
|
||||
begin
|
||||
@hostname = Resolv.new.getname(@user.last_ip)
|
||||
rescue
|
||||
@hostname = "No hostname found."
|
||||
end
|
||||
end
|
||||
|
||||
# SIGNUP
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
<% if mod? || @user.is?(current_user) %>
|
||||
<tr>
|
||||
<td><b>Last IP</b></td>
|
||||
<td><%= @user.last_ip %> (<%= @hostname %>)</td>
|
||||
<td><%= @user.last_ip %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Email</b></td>
|
||||
|
||||
Reference in New Issue
Block a user