X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoreauthhandler.cpp;h=a4c06f33aa13a0598de57ed73145e2c0243eb1ed;hp=47c57965b185f5ad6488fbc3cb240f0ad19db87d;hb=8435819ba319ea8f677dfe85f0ac639e29ffad1e;hpb=d9b17a008292b197247dca3b17814ab00dc0c586 diff --git a/src/core/coreauthhandler.cpp b/src/core/coreauthhandler.cpp index 47c57965..a4c06f33 100644 --- a/src/core/coreauthhandler.cpp +++ b/src/core/coreauthhandler.cpp @@ -218,12 +218,12 @@ void CoreAuthHandler::handle(const Login &msg) if (!checkClientRegistered()) return; - //UserId uid = Core::validateUser(msg.user, msg.password); - UserId uid = Core::authenticateUser(msg.user, msg.password); - - // Try doing direct database auth if the provider failed, first. - if (uid == 0) { - uid = Core::validateUser(msg.user, msg.password); + // 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); + if (uid == 0) + { + uid = Core::authenticateUser(msg.user, msg.password); } if (uid == 0) {