Now outputs an error message to the log

This commit is contained in:
Gabriel Pérez-Cerezo 2016-10-09 11:17:41 +02:00
parent d0ad9a4daf
commit d42c6d25ef
No known key found for this signature in database
GPG Key ID: 90422B01A46D0B3E
1 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,8 @@ local function read_auth_file()
if (name and password and privilege_string) then
local privileges = core.string_to_privs(privilege_string)
newtable[name] = {password=password, privileges=privileges, last_login=last_login}
else
core.log("error", "Invalid line in "..core.auth_file_path..": "..line.."; ignoring.")
end
end
end