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

@ -31,6 +31,7 @@ if(haveAdminPrivileges()) then
end
local ret = false
username = string.lower(username)
if(ntop.addUser(username, full_name, unescapeHTML(password), host_role, networks, getInterfaceName(allowed_interface), host_pool_id)) then
ret = true