equal
deleted
inserted
replaced
188 function provider.get_password(username) |
188 function provider.get_password(username) |
189 return nil, "Getting password is not supported."; |
189 return nil, "Getting password is not supported."; |
190 end |
190 end |
191 function provider.set_password(username, password) |
191 function provider.set_password(username, password) |
192 local hash = phpbbCreateHash(password); |
192 local hash = phpbbCreateHash(password); |
193 local stmt, err = setsql("UPDATE `phpbb_users` SET `user_password`=? WHERE `username`=?", hash, username); |
193 local stmt, err = setsql("UPDATE `phpbb_users` SET `user_password`=? WHERE `username_clean`=?", hash, username); |
194 return stmt and true, err; |
194 return stmt and true, err; |
195 end |
195 end |
196 function provider.create_user(username, password) |
196 function provider.create_user(username, password) |
197 return nil, "Account creation/modification not supported."; |
197 return nil, "Account creation/modification not supported."; |
198 end |
198 end |