Sfoglia il codice sorgente

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

master
Pedro Henrique Linhares 5 anni fa
parent
commit
1b6c5a7141
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1
    0
      resources/prosody-plugins/mod_auth_token.lua

+ 1
- 0
resources/prosody-plugins/mod_auth_token.lua Vedi File

@@ -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
 

Loading…
Annulla
Salva