From ba92063991bb0ec6cbff6238162318eb058c49c7 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Fri, 26 Oct 2012 23:58:08 +0000 Subject: Remove the public variable auth, replaced by get_subauth function --- lib/authenticator.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lib/authenticator.lua') diff --git a/lib/authenticator.lua b/lib/authenticator.lua index bf777ed..90424da 100644 --- a/lib/authenticator.lua +++ b/lib/authenticator.lua @@ -10,10 +10,7 @@ require("posix") require("session") -- This is the sub-authenticator --- This is a public variable to allow other controllers (ie tinydns) to do their own permissions --- When tinydns (and any others using the auth variable) are updated to use the get_subauth function --- we can make this local and remove the call to get_subauth at the end of this file -auth = nil +local auth = nil -- Publicly define the pre-defined tables usertable = "passwd" @@ -213,5 +210,3 @@ delete_user = function (self, userid) authstruct[userid] = nil return auth.delete_entry(self, usertable, "", userid) end - -auth = get_subauth(APP) -- cgit v1.2.3