Correctly implement iterate function

return an iterator not a table!
0.4
shivajiva101 2019-11-27 15:27:14 +00:00 committed by GitHub
parent 9da08c4cbb
commit a3acf31f96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -356,7 +356,8 @@ sauth.auth_handler = {
return search(name)
end,
iterate = function()
return get_names()
local names = get_names()
return pairs(names)
end,
}