Force username login always being lowercase

This commit is contained in:
emanuele-f 2017-05-29 11:39:19 +02:00
parent d3debf04ef
commit ac07c48b7c
7 changed files with 33 additions and 12 deletions

View file

@ -25,6 +25,8 @@ if(username == nil) then
return
end
username = string.lower(username)
if(host_role ~= nil) then
if(not ntop.changeUserRole(username, host_role)) then
print ("{ \"result\" : -1, \"message\" : \"Error in changing host type\" }")