Software /
code /
prosody
Comparison
plugins/mod_auth_anonymous.lua @ 5370:7838acadb0fa
mod_announce, mod_auth_anonymous, mod_c2s, mod_c2s, mod_component, mod_iq, mod_message, mod_presence, mod_tls: Access prosody.{hosts,bare_sessions,full_sessions} instead of the old globals
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 23 Mar 2013 01:27:16 +0100 |
parent | 5229:5566236f363f |
child | 6023:93b4058e3320 |
comparison
equal
deleted
inserted
replaced
5368:ab31dbb3a415 | 5370:7838acadb0fa |
---|---|
6 -- COPYING file in the source package for more information. | 6 -- COPYING file in the source package for more information. |
7 -- | 7 -- |
8 | 8 |
9 local new_sasl = require "util.sasl".new; | 9 local new_sasl = require "util.sasl".new; |
10 local datamanager = require "util.datamanager"; | 10 local datamanager = require "util.datamanager"; |
11 local hosts = prosody.hosts; | |
11 | 12 |
12 -- define auth provider | 13 -- define auth provider |
13 local provider = {}; | 14 local provider = {}; |
14 | 15 |
15 function provider.test_password(username, password) | 16 function provider.test_password(username, password) |