Mercurial > prosody-modules
comparison mod_extdisco/mod_extdisco.lua @ 3604:60df58c5f7dd
mod_extdisco: Set missing namespace on credentials response
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 23 May 2019 17:28:28 +0200 |
parents | ec1d25ae6206 |
children | 452ae6effd02 |
comparison
equal
deleted
inserted
replaced
3603:ec1d25ae6206 | 3604:60df58c5f7dd |
---|---|
39 if not service_info then | 39 if not service_info then |
40 origin.send(st.error_reply(stanza, "cancel", "item-not-found", "No such service known")); | 40 origin.send(st.error_reply(stanza, "cancel", "item-not-found", "No such service known")); |
41 return true; | 41 return true; |
42 end | 42 end |
43 local reply = st.reply(stanza) | 43 local reply = st.reply(stanza) |
44 :tag("credentials") | 44 :tag("credentials", { xmlns = xmlns_extdisco }) |
45 :tag("service", { | 45 :tag("service", { |
46 host = host; | 46 host = host; |
47 username = service_info.username; | 47 username = service_info.username; |
48 password = service_info.password; | 48 password = service_info.password; |
49 }):up(); | 49 }):up(); |