Software /
code /
prosody
Comparison
util/sasl.lua @ 12975:d10957394a3c
util: Prefix module imports with prosody namespace
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 17 Mar 2023 16:23:16 +0100 |
parent | 12911:ab1164eda011 |
child | 13060:8dd5d247f989 |
comparison
equal
deleted
inserted
replaced
12974:ba409c67353b | 12975:d10957394a3c |
---|---|
131 --if message == "" or message == nil then return "failure", "malformed-request" end | 131 --if message == "" or message == nil then return "failure", "malformed-request" end |
132 return registered_mechanisms[self.selected](self, message); | 132 return registered_mechanisms[self.selected](self, message); |
133 end | 133 end |
134 | 134 |
135 -- load the mechanisms | 135 -- load the mechanisms |
136 require "util.sasl.plain" .init(registerMechanism); | 136 require "prosody.util.sasl.plain" .init(registerMechanism); |
137 require "util.sasl.anonymous" .init(registerMechanism); | 137 require "prosody.util.sasl.anonymous" .init(registerMechanism); |
138 require "util.sasl.oauthbearer" .init(registerMechanism); | 138 require "prosody.util.sasl.oauthbearer" .init(registerMechanism); |
139 require "util.sasl.scram" .init(registerMechanism); | 139 require "prosody.util.sasl.scram" .init(registerMechanism); |
140 require "util.sasl.external" .init(registerMechanism); | 140 require "prosody.util.sasl.external" .init(registerMechanism); |
141 | 141 |
142 return { | 142 return { |
143 registerMechanism = registerMechanism; | 143 registerMechanism = registerMechanism; |
144 new = new; | 144 new = new; |
145 }; | 145 }; |