This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module:depends"http" | |
local jid_split = require "util.jid".split; | |
local jid_prep = require "util.jid".prep; | |
local msg = require "util.stanza".message; | |
local test_password = require "core.usermanager".test_password; | |
local b64_decode = require "util.encodings".base64.decode; | |
local json = require "util.json"; | |
local function require_valid_user(f) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var UInt4 = function (value) { | |
return (value & 0xF); | |
}; | |
var Int4 = function (value) { | |
var ref = UInt4(value); | |
return (ref > 0x7) ? ref - 0x10 : ref; | |
}; | |
var UInt8 = function (value) { |