Minor fixes

This commit is contained in:
Adolfo Gómez 2013-03-20 08:29:22 +00:00
parent c9da25bed8
commit 8308890329

View File

@ -75,7 +75,6 @@ class IPAuth(Authenticator):
# these groups are a bit special. They are in fact ip-ranges, and we must check that the ip is in betwen # these groups are a bit special. They are in fact ip-ranges, and we must check that the ip is in betwen
# The ranges are stored in group names # The ranges are stored in group names
ip = Network.ipToLong(ip) ip = Network.ipToLong(ip)
g = []
for g in groupsManager.getGroupsNames(): for g in groupsManager.getGroupsNames():
rangeStart, rangeEnd = g.split('-') rangeStart, rangeEnd = g.split('-')
rangeStart = Network.ipToLong(rangeStart) rangeStart = Network.ipToLong(rangeStart)
@ -100,7 +99,7 @@ class IPAuth(Authenticator):
@staticmethod @staticmethod
def test(env, data): def test(env, data):
return "Internal structures seems ok" return _("All seems fine in the authenticator.")
def check(self): def check(self):
return _("All seems fine in the authenticator.") return _("All seems fine in the authenticator.")