diff options
author | Kim Alvefur <zash@zash.se> | 2016-02-21 19:30:45 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-02-21 19:30:45 +0100 |
commit | 28585f40e30b5aabe1fe4f1814dfe49115352035 (patch) | |
tree | b71c2080e0a1774ad27e4e5778cafac73af27203 | |
parent | 71d2dced8dd98ce1b1bf67e2ebbae981cf85287c (diff) | |
download | prosody-28585f40e30b5aabe1fe4f1814dfe49115352035.tar.gz prosody-28585f40e30b5aabe1fe4f1814dfe49115352035.zip |
usermanager: Shortcircuit user existence check if they have existing sessions
-rw-r--r-- | core/usermanager.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/usermanager.lua b/core/usermanager.lua index 0d8d7f91..d5132662 100644 --- a/core/usermanager.lua +++ b/core/usermanager.lua @@ -81,6 +81,7 @@ local function set_password(username, password, host) end local function user_exists(username, host) + if hosts[host].sessions[username] then return true; end return hosts[host].users.user_exists(username); end |