X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoreauthhandler.cpp;h=26cdfcfc9242dfb4c228135d19fa6c679a0d2f38;hp=c95fe3030c06767b17a7ac2a127792e8888c4c25;hb=08bace4e9ecf08273f094c0c6aa8b3363d38ac3e;hpb=35ca85f1c4371ee28d00d5ff0195a5b44aadb299 diff --git a/src/core/coreauthhandler.cpp b/src/core/coreauthhandler.cpp index c95fe303..26cdfcfc 100644 --- a/src/core/coreauthhandler.cpp +++ b/src/core/coreauthhandler.cpp @@ -204,6 +204,12 @@ void CoreAuthHandler::handle(const Login &msg) if (!checkClientRegistered()) return; + if (!Core::isConfigured()) { + qWarning() << qPrintable(tr("Client")) << qPrintable(socket()->peerAddress().toString()) << qPrintable(tr("attempted to login before the core was configured, rejecting.")); + _peer->dispatch(ClientDenied(tr("Attempted to login before core was configured!
The core must be configured before attempting to login."))); + return; + } + UserId uid = Core::validateUser(msg.user, msg.password); if (uid == 0) { quInfo() << qPrintable(tr("Invalid login attempt from %1 as \"%2\"").arg(socket()->peerAddress().toString(), msg.user));