mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +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
|
|
@ -26,6 +26,8 @@ if((username == nil) or (old_password == nil) or (new_password == nil) or (confi
|
|||
return
|
||||
end
|
||||
|
||||
username = string.lower(username)
|
||||
|
||||
if(new_password ~= confirm_new_password) then
|
||||
print ("{ \"result\" : -1, \"message\" : \"Password don't match\" }")
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue