summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiesecurity/multiauthpassword.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libopie2/opiesecurity/multiauthpassword.cpp b/libopie2/opiesecurity/multiauthpassword.cpp
index 8eda554..6c8944e 100644
--- a/libopie2/opiesecurity/multiauthpassword.cpp
+++ b/libopie2/opiesecurity/multiauthpassword.cpp
@@ -84,9 +84,9 @@ bool MultiauthPassword::needToAuthenticate(bool at_poweron)
* when the user has successfully authenticated to the system.
*/
void MultiauthPassword::authenticate(int lockMode)
{
- /**
+ /**
* \par Conditions
*
* If lockMode is an If, it's conditional:
* \li IfPowerOn will not trigger an authentication if
@@ -98,11 +98,11 @@ void MultiauthPassword::authenticate(int lockMode)
{
Config cfg("Security");
cfg.setGroup("Misc");
if ( (
- (lockMode == IfPowerOn) && cfg.readBoolEntry("onStart", false)
+ (lockMode == IfPowerOn) && !cfg.readBoolEntry("onStart", false)
) || (
- (lockMode == IfResume) && cfg.readBoolEntry("onResume", false)
+ (lockMode == IfResume) && !cfg.readBoolEntry("onResume", false)
) )
return;
}
@@ -113,9 +113,9 @@ void MultiauthPassword::authenticate(int lockMode)
* \li LockNow will always go on with the authentication, and won't let
* people escape.
*/
bool allowByPass = false;
-
+
if (lockMode == TestNow)
allowByPass = true;
/* Constructs the main window, which displays messages and blocks