[WebUI] Log successful logins with associated ip

This commit is contained in:
Calum Lind 2017-02-20 18:37:01 +00:00
parent c2c0fe86f9
commit dd30bad96a
1 changed files with 1 additions and 0 deletions

View File

@ -298,6 +298,7 @@ class Auth(JSONComponent):
:rtype: string or False :rtype: string or False
""" """
if self.check_password(password): if self.check_password(password):
log.info('Login success (ClientIP %s)', __request__.getClientIP())
return self._create_session(__request__) return self._create_session(__request__)
else: else:
log.error('Login failed (ClientIP %s)', __request__.getClientIP()) log.error('Login failed (ClientIP %s)', __request__.getClientIP())