diff --git a/src/config_manager.cpp b/src/config_manager.cpp index 69de3cf..d6893a8 100644 --- a/src/config_manager.cpp +++ b/src/config_manager.cpp @@ -84,6 +84,14 @@ bool ConfigManager::initConfig() // This means the config is invalid return false; } + config.beginGroup("Options"); + QString auth_type = config.value("auth", "simple").toString(); + config.endGroup(); + if (!(auth_type == "simple" || auth_type == "advanced")) { + qCritical() << "config.ini is invalid!"; + return false; + } + else { // Config is valid and up to date, so let's go ahead return true;