From 7d84f2f261e91a36f7414475e64893eb125c217d Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 21 Feb 2016 19:30:45 +0100 Subject: usermanager: Shortcircuit user existence check if they have existing sessions --- core/usermanager.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'core/usermanager.lua') 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 -- cgit v1.2.3