blob: a67ad368338495abb5903d88f34c2bebf5a7ae7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
require "util.datamanager"
local datamanager = datamanager;
module "usermanager"
function validate_credentials(host, username, password)
local credentials = datamanager.load(username, host, "accounts") or {};
if password == credentials.password then return true; end
return false;
end
return _M;
|