remove extra call to time_auth

This commit is contained in:
Jeremy Rosenbaum 2015-09-03 16:46:14 -07:00
parent c3a2355a62
commit 77daaa31ea

View File

@ -1715,12 +1715,14 @@ class ClearFuncs(object):
if not found:
log.warning('Authentication failure of type "eauth" occurred.')
return ''
if not self.loadauth.time_auth(clear_load):
log.warning('Authentication failure of type "eauth" occurred.')
return ''
clear_load['groups'] = groups
return self.loadauth.mk_token(clear_load)
token = self.loadauth.mk_token(clear_load)
if not token:
log.warning('Authentication failure of type "eauth" occurred.')
return ''
else:
return token
except Exception as exc:
type_, value_, traceback_ = sys.exc_info()
log.error(