From 1de5051b77bde7df61ed9fa2dde44abfc3344535 Mon Sep 17 00:00:00 2001 From: mjansen Date: Mon, 4 Nov 2024 11:14:29 +0100 Subject: [PATCH] Init/PasswordAssistance: Fix wrong paths to session handler file See: https://mantis.ilias.de/view.php?id=42540 --- .../ILIAS/Init/classes/class.ilPasswordAssistanceGUI.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/ILIAS/Init/classes/class.ilPasswordAssistanceGUI.php b/components/ILIAS/Init/classes/class.ilPasswordAssistanceGUI.php index 2a149285566c..283f3b3bdaa5 100755 --- a/components/ILIAS/Init/classes/class.ilPasswordAssistanceGUI.php +++ b/components/ILIAS/Init/classes/class.ilPasswordAssistanceGUI.php @@ -380,7 +380,7 @@ private function sendPasswordAssistanceMail(ilObjUser $userObj): void { global $DIC; - require_once 'cli/inc.pwassist_session_handler.php'; + require_once __DIR__ . '/../../../../cli/inc.pwassist_session_handler.php'; $pwassist_session['pwassist_id'] = db_pwassist_create_id(); db_pwassist_session_write( $pwassist_session['pwassist_id'], @@ -523,7 +523,7 @@ private function showAssignPasswordForm( $pwassist_id = $this->retrieveRequestedKey(); } - require_once 'cli/inc.pwassist_session_handler.php'; + require_once __DIR__ . '/../../../../cli/inc.pwassist_session_handler.php'; $pwassist_session = db_pwassist_session_read($pwassist_id); if (!is_array($pwassist_session) || $pwassist_session['expires'] < time()) { $this->tpl->setOnScreenMessage('failure', $this->lng->txt('pwassist_session_expired')); @@ -584,7 +584,7 @@ private function submitAssignPasswordForm(): void $password = $form_data[self::PROP_PASSWORD]; $pwassist_id = $form_data[self::PROP_KEY]; - require_once 'cli/inc.pwassist_session_handler.php'; + require_once __DIR__ . '/../../../../cli/inc.pwassist_session_handler.php'; $pwassist_session = db_pwassist_session_read($pwassist_id); if (!is_array($pwassist_session) || $pwassist_session['expires'] < time()) { $this->tpl->setOnScreenMessage(