mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Force username login always being lowercase
This commit is contained in:
parent
d3debf04ef
commit
ac07c48b7c
7 changed files with 33 additions and 12 deletions
|
|
@ -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\" }")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue