Changeset - 069cd71aa3d7
[Not reviewed]
0 1 0
HanzZ - 14 years ago 2011-08-21 23:01:16
hanzz.k@gmail.com
Disconnect even invalid user, this can happen when password is valid, but session was not established yet
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/userregistry.cpp
Show inline comments
 
@@ -80,7 +80,6 @@ void UserRegistry::stopLogin(const Swift::JID& user, Swift::ServerFromClientSess
 
	if (users.find(key) != users.end()) {
 
		if (users[key].session == session) {
 
			LOG4CXX_INFO(logger, key << ": Stopping login process (user probably disconnected while logging in)");
 
			onDisconnectUser(user);
 
			users.erase(key);
 
		}
 
		else {
 
@@ -90,6 +89,7 @@ void UserRegistry::stopLogin(const Swift::JID& user, Swift::ServerFromClientSess
 
	else {
 
		LOG4CXX_WARN(logger, key << ": Stopping login process (user probably disconnected while logging in) for invalid user");
 
	}
 
	onDisconnectUser(user);
 
}
 

	
 
void UserRegistry::onPasswordValid(const Swift::JID &user) {
0 comments (0 inline, 0 general)