diff options
author | Kim Alvefur <zash@zash.se> | 2017-04-20 00:41:49 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-04-20 00:41:49 +0200 |
commit | 56fa06726426891f0ebc7c3bfc7e69ec38ec0a12 (patch) | |
tree | 6807f13197827f810a9a2cd3dc79efcf2e61e093 /util/sasl/plain.lua | |
parent | ad56ba387e3173a92387e24767de33346d9599ca (diff) | |
parent | 8a5beb28d90e4e5eda00fd7728e2fbfd50c0f142 (diff) | |
download | prosody-56fa06726426891f0ebc7c3bfc7e69ec38ec0a12.tar.gz prosody-56fa06726426891f0ebc7c3bfc7e69ec38ec0a12.zip |
Merge 0.10->trunk
Diffstat (limited to 'util/sasl/plain.lua')
-rw-r--r-- | util/sasl/plain.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/sasl/plain.lua b/util/sasl/plain.lua index 26e65335..cd59b1ac 100644 --- a/util/sasl/plain.lua +++ b/util/sasl/plain.lua @@ -63,6 +63,8 @@ local function plain(self, message) end end + self.username = authentication + local correct, state = false, false; if self.profile.plain then local correct_password; @@ -72,7 +74,6 @@ local function plain(self, message) correct, state = self.profile.plain_test(self, authentication, password, self.realm); end - self.username = authentication if state == false then return "failure", "account-disabled"; elseif state == nil or not correct then |