diff options
author | Kim Alvefur <zash@zash.se> | 2020-05-22 21:05:45 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-05-22 21:05:45 +0200 |
commit | 5919a7557e1c52a2a3efb7b41e26fb0482a7698f (patch) | |
tree | 0fd95d5a53fec048a6ecfdcceec53548710a21a0 /util/sasl/plain.lua | |
parent | 7f090620908d10caae5a78e26fad8ec59b853d1c (diff) | |
download | prosody-5919a7557e1c52a2a3efb7b41e26fb0482a7698f.tar.gz prosody-5919a7557e1c52a2a3efb7b41e26fb0482a7698f.zip |
util.sasl.plain: Apply saslprep to stored password
Fixes something like #1560 here too.
The password sent by the user already had saslprep applied.
Diffstat (limited to 'util/sasl/plain.lua')
-rw-r--r-- | util/sasl/plain.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sasl/plain.lua b/util/sasl/plain.lua index 00c6bd20..43a66c5b 100644 --- a/util/sasl/plain.lua +++ b/util/sasl/plain.lua @@ -70,7 +70,7 @@ local function plain(self, message) if self.profile.plain then local correct_password; correct_password, state = self.profile.plain(self, authentication, self.realm); - correct = (correct_password == password); + correct = (saslprep(correct_password) == password); elseif self.profile.plain_test then correct, state = self.profile.plain_test(self, authentication, password, self.realm); end |