mod_auth_sql: Read option 'auth_sql' (thanks rdnzlc)

Thu, 08 Dec 2011 08:17:36 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Thu, 08 Dec 2011 08:17:36 +0000
changeset 500
bd08727378be
parent 499
30e33292d738
child 501
e851f386c904

mod_auth_sql: Read option 'auth_sql' (thanks rdnzlc)

mod_auth_sql/mod_auth_sql.lua file | annotate | diff | comparison | revisions
--- a/mod_auth_sql/mod_auth_sql.lua	Mon Dec 05 21:34:59 2011 +0000
+++ b/mod_auth_sql/mod_auth_sql.lua	Thu Dec 08 08:17:36 2011 +0000
@@ -9,7 +9,7 @@
 local DBI = require "DBI"
 
 local connection;
-local params = module:get_option("sql");
+local params = module:get_option("auth_sql", module:get_option("sql"));
 
 local resolve_relative_path = require "core.configmanager".resolve_relative_path;
 

mercurial