Removed hostnames from user profiles.

This commit is contained in:
Logan Fick
2018-09-13 20:48:24 -04:00
parent f3908410c8
commit 0de6b08b4e
2 changed files with 1 additions and 7 deletions
-6
View File
@@ -22,12 +22,6 @@ class UsersController < ApplicationController
flash.now[:alert] = "An error occured while checking if this user is banned from the server!" flash.now[:alert] = "An error occured while checking if this user is banned from the server!"
@ban_json = nil @ban_json = nil
end end
begin
@hostname = Resolv.new.getname(@user.last_ip)
rescue
@hostname = "No hostname found."
end
end end
# SIGNUP # SIGNUP
+1 -1
View File
@@ -85,7 +85,7 @@
<% if mod? || @user.is?(current_user) %> <% if mod? || @user.is?(current_user) %>
<tr> <tr>
<td><b>Last IP</b></td> <td><b>Last IP</b></td>
<td><%= @user.last_ip %> (<%= @hostname %>)</td> <td><%= @user.last_ip %></td>
</tr> </tr>
<tr> <tr>
<td><b>Email</b></td> <td><b>Email</b></td>