-rw-r--r-- | libopie2/opiesecurity/multiauthcommon.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libopie2/opiesecurity/multiauthcommon.cpp b/libopie2/opiesecurity/multiauthcommon.cpp index d8e26d5..9de62d2 100644 --- a/libopie2/opiesecurity/multiauthcommon.cpp +++ b/libopie2/opiesecurity/multiauthcommon.cpp @@ -74,4 +74,13 @@ int runPlugins() { config.setGroup("Plugins"); QStringList plugins = config.readListEntry("IncludePlugins", ','); + /* if there are no configured plugins, we simply return 0 to + * let the user in: + */ + if (plugins.isEmpty() == true) { + owarn << "No authentication plugin has been configured yet!" << oendl; + odebug << "Letting the user in..." << oendl; + if(oi) delete oi; + return 0; + } config.setGroup("Misc"); int nbSuccessMin = config.readNumEntry("nbSuccessMin", 1); |