Skip to content

Commit

Permalink
Init/PasswordAssistance: Fix wrong paths to session handler file
Browse files Browse the repository at this point in the history
  • Loading branch information
mjansenDatabay committed Nov 4, 2024
1 parent 9dc6e54 commit 1de5051
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down Expand Up @@ -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'));
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 1de5051

Please sign in to comment.