forked from shaba/openuds
Minor fixes
This commit is contained in:
parent
c9da25bed8
commit
8308890329
@ -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.")
|
||||||
|
Loading…
Reference in New Issue
Block a user