ILIAS  trunk Revision v11.0_alpha-1811-gd2d5443e411
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilForcedUserPasswordChangeStartUpStep Class Reference
+ Inheritance diagram for ilForcedUserPasswordChangeStartUpStep:
+ Collaboration diagram for ilForcedUserPasswordChangeStartUpStep:

Public Member Functions

 __construct (ilObjUser $user, ilCtrl $ctrl, ServerRequestInterface $request)
 
 shouldStoreRequestTarget ()
 
 isInFulfillment ()
 
 shouldInterceptRequest ()
 
 execute ()
 
- Public Member Functions inherited from ILIAS\Init\StartupSequence\StartUpSequenceStep
 shouldStoreRequestTarget ()
 
 shouldInterceptRequest ()
 
 isInFulfillment ()
 
 execute ()
 

Private Attributes

ilObjUser $user
 
ilCtrl $ctrl
 
ServerRequestInterface $request
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilForcedUserPasswordChangeStartUpStep::__construct ( ilObjUser  $user,
ilCtrl  $ctrl,
ServerRequestInterface  $request 
)

Member Function Documentation

◆ execute()

ilForcedUserPasswordChangeStartUpStep::execute ( )

Definition at line 83 of file class.ilForcedUserPasswordChangeStartUpStep.php.

References ilLocalUserPasswordSettingsGUI\CMD_SHOW_PASSWORD, and ILIAS\Repository\ctrl().

83  : void
84  {
85  $this->ctrl->redirectToURL(
86  $this->ctrl->getLinkTargetByClass(
87  [
88  ilDashboardGUI::class,
89  ilPersonalSettingsGUI::class,
90  ilLocalUserPasswordSettingsGUI::class
91  ],
93  )
94  );
95  }
+ Here is the call graph for this function:

◆ isInFulfillment()

ilForcedUserPasswordChangeStartUpStep::isInFulfillment ( )

Definition at line 45 of file class.ilForcedUserPasswordChangeStartUpStep.php.

References ilLocalUserPasswordSettingsGUI\CMD_SAVE_PASSWORD, ilLocalUserPasswordSettingsGUI\CMD_SHOW_PASSWORD, and ILIAS\Repository\ctrl().

Referenced by shouldInterceptRequest().

45  : bool
46  {
47  if (
48  !isset($this->request->getQueryParams()['baseClass']) ||
49  strtolower($this->request->getQueryParams()['baseClass']) !== strtolower(ilDashboardGUI::class)
50  ) {
51  return false;
52  }
53 
54  return
55  (
56  strtolower($this->ctrl->getCmdClass()) === strtolower(ilLocalUserPasswordSettingsGUI::class)
57  ) &&
58  in_array(
59  $this->ctrl->getCmd(),
60  [
63  ],
64  true
65  )
66  ;
67  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ shouldInterceptRequest()

ilForcedUserPasswordChangeStartUpStep::shouldInterceptRequest ( )

Definition at line 69 of file class.ilForcedUserPasswordChangeStartUpStep.php.

References ilSession\get(), isInFulfillment(), and ILIAS\Repository\user().

69  : bool
70  {
71  if (ilSession::get('used_external_auth_mode')) {
72  return false;
73  }
74 
75  if (!$this->isInFulfillment() && ($this->user->isPasswordChangeDemanded() || $this->user->isPasswordExpired(
76  ))) {
77  return true;
78  }
79 
80  return false;
81  }
static get(string $a_var)
+ Here is the call graph for this function:

◆ shouldStoreRequestTarget()

ilForcedUserPasswordChangeStartUpStep::shouldStoreRequestTarget ( )

Definition at line 40 of file class.ilForcedUserPasswordChangeStartUpStep.php.

40  : bool
41  {
42  return true;
43  }

Field Documentation

◆ $ctrl

ilCtrl ilForcedUserPasswordChangeStartUpStep::$ctrl
private

Definition at line 27 of file class.ilForcedUserPasswordChangeStartUpStep.php.

Referenced by __construct().

◆ $request

ServerRequestInterface ilForcedUserPasswordChangeStartUpStep::$request
private

Definition at line 28 of file class.ilForcedUserPasswordChangeStartUpStep.php.

Referenced by __construct().

◆ $user

ilObjUser ilForcedUserPasswordChangeStartUpStep::$user
private

Definition at line 26 of file class.ilForcedUserPasswordChangeStartUpStep.php.

Referenced by __construct().


The documentation for this class was generated from the following file: