diff --git a/Services/Authentication/classes/Frontend/class.ilAuthFrontendCLI.php b/Services/Authentication/classes/Frontend/class.ilAuthFrontendCLI.php index b74013f23925..17e453592f5d 100644 --- a/Services/Authentication/classes/Frontend/class.ilAuthFrontendCLI.php +++ b/Services/Authentication/classes/Frontend/class.ilAuthFrontendCLI.php @@ -26,4 +26,12 @@ */ class ilAuthFrontendCLI extends ilAuthFrontend implements ilAuthFrontendInterface { + /** + * This overwrites ilAuthFrontend::checkIp used in ilAuthFrontend::authenticate + * since CLI does not set $_SERVER['REMOTE_ADDR']! + */ + protected function checkIp(ilObjUser $user): bool + { + return true; + } }