diff options
author | Tobias Markmann <tm@ayena.de> | 2009-11-19 00:04:14 +0100 |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2009-11-19 00:04:14 +0100 |
commit | 6117baa28d8658b16a4de88f4183bef42bed8e0a (patch) | |
tree | 441f5c11da90ffd3435724f8b14022caa596fdd9 /util/sasl/scram.lua | |
parent | 74de4e38040d61d111b875a65bcb705a7047ef77 (diff) | |
download | prosody-6117baa28d8658b16a4de88f4183bef42bed8e0a.tar.gz prosody-6117baa28d8658b16a4de88f4183bef42bed8e0a.zip |
Handle , and = in usernames for SCRAM.
Diffstat (limited to 'util/sasl/scram.lua')
-rw-r--r-- | util/sasl/scram.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/sasl/scram.lua b/util/sasl/scram.lua index 7d60ef86..a7b21d0d 100644 --- a/util/sasl/scram.lua +++ b/util/sasl/scram.lua @@ -70,6 +70,8 @@ local function validate_username(username) end -- replace =2D with , and =3D with = + username:gsub("=2D", ","); + username:gsub("=3D", "="); -- apply SASLprep username = saslprep(username); |