aboutsummaryrefslogtreecommitdiffstats
path: root/core/usermanager.lua
blob: c98a1918b6c2e04a40fa490851b78d45ef9aba77 (plain)
1
2
3
4
5
6
7
8
9
10
11

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