mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Added REMOTE_ADDR to _SERVER, recording address in alerts generated by the tracker, logging IP address from which password has been changed (#2554)
This commit is contained in:
parent
372cb9eefe
commit
7d3183e642
5 changed files with 14 additions and 5 deletions
|
|
@ -771,7 +771,8 @@ function formatRawUserActivity(record, activity_json)
|
|||
|
||||
elseif decoded.name == 'resetUserPassword' and decoded.params[2] ~= nil then
|
||||
local pwd_user = decoded.params[2]
|
||||
return i18n('user_activity.password_changed', {user=user, pwd_user=pwd_user})
|
||||
local user_ip = ternary(decoded.remote_addr, decoded.remote_addr, '')
|
||||
return i18n('user_activity.password_changed', {user=user, pwd_user=pwd_user, ip=user_ip})
|
||||
|
||||
-- SNMP device add/del
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue