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

@ -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