Software / code / prosody
Comparison
plugins/mod_saslauth.lua @ 1484:80e4f1d731c2
Fixed decoding of parameters.
| author | Tobias Markmann <tm@ayena.de> |
|---|---|
| date | Sun, 05 Jul 2009 18:59:46 +0200 |
| parent | 1449:6a90316a81c3 |
| child | 1486:3e04efa8af7e |
comparison
equal
deleted
inserted
replaced
| 1449:6a90316a81c3 | 1484:80e4f1d731c2 |
|---|---|
| 70 local func = function(x) return x; end; | 70 local func = function(x) return x; end; |
| 71 if password then | 71 if password then |
| 72 if mechanism == "PLAIN" then | 72 if mechanism == "PLAIN" then |
| 73 return func, password; | 73 return func, password; |
| 74 elseif mechanism == "DIGEST-MD5" then | 74 elseif mechanism == "DIGEST-MD5" then |
| 75 if decoder then node, hostname, password = decoder(node), decoder(hostname), decoder(password); end | 75 if decoder then node, realm, password = decoder(node), decoder(realm), decoder(password); end |
| 76 return func, md5(node..":"..realm..":"..password); | 76 return func, md5(node..":"..realm..":"..password); |
| 77 end | 77 end |
| 78 end | 78 end |
| 79 return func, nil; | 79 return func, nil; |
| 80 end | 80 end |