Comparison

plugins/mod_tokenauth.lua @ 12977:74b9e05af71e

plugins: Prefix module imports with prosody namespace
author Kim Alvefur <zash@zash.se>
date Fri, 24 Mar 2023 13:15:28 +0100
parent 12959:e331210beeb2
child 12980:6ebad8e16b3b
comparison
equal deleted inserted replaced
12976:a187600ec7d6 12977:74b9e05af71e
1 local base64 = require "util.encodings".base64; 1 local base64 = require "prosody.util.encodings".base64;
2 local hashes = require "util.hashes"; 2 local hashes = require "prosody.util.hashes";
3 local id = require "util.id"; 3 local id = require "prosody.util.id";
4 local jid = require "util.jid"; 4 local jid = require "prosody.util.jid";
5 local random = require "util.random"; 5 local random = require "prosody.util.random";
6 local usermanager = require "core.usermanager"; 6 local usermanager = require "prosody.core.usermanager";
7 local generate_identifier = require "util.id".short; 7 local generate_identifier = require "prosody.util.id".short;
8 8
9 local token_store = module:open_store("auth_tokens", "map"); 9 local token_store = module:open_store("auth_tokens", "map");
10 10
11 local function select_role(username, host, role) 11 local function select_role(username, host, role)
12 if role then 12 if role then