[WebUI] Log successful logins with associated ip
This commit is contained in:
parent
c2c0fe86f9
commit
dd30bad96a
|
@ -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())
|
||||||
|
|
Loading…
Reference in New Issue