Fix handling of fail mode

This commit is contained in:
Bartosz Wieczorek 2025-07-18 12:26:41 +02:00
parent 0934902bba
commit 406b9ff97c

View File

@ -44,7 +44,7 @@ class ErrorHandler {
}
if(error.is< ConnectionError >()) {
if(config.failMode == FailMode::deny) {
if(config.failMode != FailMode::deny) {
pam.print("Incorrect response from the Rublon API, user bypassed");
return AuthenticationStatus::Action::Bypass;
} else {