Software /
code /
prosody
Comparison
plugins/mod_auth_internal_hashed.lua @ 5783:3a81e3b0ea4f
mod_auth_internal_hashed: Use logger setup by moduleapi instead of going for util.logger directly
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 10 Aug 2013 20:17:45 +0200 |
parent | 5782:f449da907b85 |
child | 5784:02217725454b |
comparison
equal
deleted
inserted
replaced
5782:f449da907b85 | 5783:3a81e3b0ea4f |
---|---|
5 -- | 5 -- |
6 -- This project is MIT/X11 licensed. Please see the | 6 -- This project is MIT/X11 licensed. Please see the |
7 -- COPYING file in the source package for more information. | 7 -- COPYING file in the source package for more information. |
8 -- | 8 -- |
9 | 9 |
10 local log = require "util.logger".init("auth_internal_hashed"); | |
11 local getAuthenticationDatabaseSHA1 = require "util.sasl.scram".getAuthenticationDatabaseSHA1; | 10 local getAuthenticationDatabaseSHA1 = require "util.sasl.scram".getAuthenticationDatabaseSHA1; |
12 local usermanager = require "core.usermanager"; | 11 local usermanager = require "core.usermanager"; |
13 local generate_uuid = require "util.uuid".generate; | 12 local generate_uuid = require "util.uuid".generate; |
14 local new_sasl = require "util.sasl".new; | 13 local new_sasl = require "util.sasl".new; |
14 | |
15 local log = module._log; | |
15 | 16 |
16 local accounts = module:open_store("accounts"); | 17 local accounts = module:open_store("accounts"); |
17 | 18 |
18 local to_hex; | 19 local to_hex; |
19 do | 20 do |