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

This commit is contained in:
Pedro Henrique Linhares 2020-01-29 21:25:15 -03:00 committed by GitHub
parent a9767eda72
commit 1b6c5a7141
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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