Using socket.getfqdn
[invirt/packages/invirt-web.git] / code / main.py
index dd60e96..2e95361 100755 (executable)
@@ -12,6 +12,7 @@ import simplejson
 import sys
 import time
 import urllib
+import os
 from StringIO import StringIO
 
 def revertStandardError():
@@ -606,7 +607,8 @@ def info(username, state, path, fields):
 
 def unauthFront(_, _2, _3, fields):
     """Information for unauth'd users."""
-    return templates.unauth(searchList=[{'simple' : True}])
+    return templates.unauth(searchList=[{'simple' : True, 
+            'hostname' : socket.getfqdn()}])
 
 def admin(username, state, path, fields):
     if path == '':