X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoreauthhandler.cpp;h=913968bca1e7eba75bd465c45f30012a48aca2e5;hp=cf0c82b08b21ffe3c4bcbfa899f26f59a5d7ae96;hb=e17fca767d60c06ca02bc5898ced04f06d3670bd;hpb=2b777e99fc9f74d4ed21491710260664a1721d1f diff --git a/src/core/coreauthhandler.cpp b/src/core/coreauthhandler.cpp index cf0c82b0..913968bc 100644 --- a/src/core/coreauthhandler.cpp +++ b/src/core/coreauthhandler.cpp @@ -221,6 +221,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; + } + // First attempt local auth using the real username and password. // If that fails, move onto the auth provider. UserId uid = Core::validateUser(msg.user, msg.password);