mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-12 20:44:50 +00:00
[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…
x
Reference in New Issue
Block a user