comparison mod_auth_wordpress/mod_auth_wordpress.lua @ 427:35b3ea156156

mod_auth_wordpress: Fix wrong column name
author Kim Alvefur <zash@zash.se>
date Sun, 11 Sep 2011 23:24:31 +0200
parents 6f2e37d0a1b0
children a46c2326eed7
comparison
equal deleted inserted replaced
426:6f2e37d0a1b0 427:35b3ea156156
82 82
83 local function get_password(username) 83 local function get_password(username)
84 local stmt, err = getsql("SELECT `user_pass` FROM `"..table_prefix.."users` WHERE `user_login`=?", username); 84 local stmt, err = getsql("SELECT `user_pass` FROM `"..table_prefix.."users` WHERE `user_login`=?", username);
85 if stmt then 85 if stmt then
86 for row in stmt:rows(true) do 86 for row in stmt:rows(true) do
87 return row.user_password; 87 return row.user_pass;
88 end 88 end
89 end 89 end
90 end 90 end
91 91
92 92