Fixes unnecessary escaping of passwords

Unescaping is already done in C.

Fixes #2490
This commit is contained in:
Simone Mainardi 2019-04-03 12:22:19 +02:00
parent 208838e812
commit 3b3e04528d

View file

@ -34,7 +34,7 @@ if(haveAdminPrivileges()) then
local ret = false
username = string.lower(username)
if(ntop.addUser(username, full_name, unescapeHTML(password), host_role, networks, getInterfaceName(allowed_interface), host_pool_id, language)) then
if(ntop.addUser(username, full_name, password, host_role, networks, getInterfaceName(allowed_interface), host_pool_id, language)) then
ret = true
if limited_lifetime and not ntop.addUserLifetime(username, lifetime_secs) then