浏览代码

Set SASL username when using anonymous mechanism with auth_token (#5025)

master
Pedro Henrique Linhares 5 年前
父节点
当前提交
1b6c5a7141
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      resources/prosody-plugins/mod_auth_token.lua

+ 1
- 0
resources/prosody-plugins/mod_auth_token.lua 查看文件

@@ -95,6 +95,7 @@ local function anonymous(self, message)
95 95
 	local result, err, msg = self.profile.anonymous(self, username, self.realm);
96 96
 
97 97
 	if result == true then
98
+		self.username = username;
98 99
 		return "success";
99 100
 	else
100 101
 

正在加载...
取消
保存