diff mod_auth_sql/mod_auth_sql.lua @ 500:bd08727378be

mod_auth_sql: Read option 'auth_sql' (thanks rdnzlc)
author Matthew Wild <mwild1@gmail.com>
date Thu, 08 Dec 2011 08:17:36 +0000
parents bbea8081c865
children 881ec9919144
line wrap: on
line diff
--- 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;