ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilForcedUserPasswordChangeStartUpStep Class Reference

Class ilForcedUserPasswordChangeStartUpStep. More...

+ 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 76 of file class.ilForcedUserPasswordChangeStartUpStep.php.

References ILIAS\Repository\ctrl().

76  : void
77  {
78  $this->ctrl->redirectByClass(
79  ['ildashboardgui', 'ilpersonalsettingsgui'],
80  'showPassword'
81  );
82  }
+ Here is the call graph for this function:

◆ isInFulfillment()

ilForcedUserPasswordChangeStartUpStep::isInFulfillment ( )

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

References ILIAS\Repository\ctrl().

Referenced by shouldInterceptRequest().

48  : bool
49  {
50  if (
51  !isset($this->request->getQueryParams()['baseClass']) ||
52  strtolower($this->request->getQueryParams()['baseClass']) !== 'ildashboardgui'
53  ) {
54  return false;
55  }
56 
57  return (
58  strtolower($this->ctrl->getCmdClass()) === 'ilpersonalsettingsgui' &&
59  in_array(strtolower($this->ctrl->getCmd()), ['showpassword', 'savepassword'])
60  );
61  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ shouldInterceptRequest()

ilForcedUserPasswordChangeStartUpStep::shouldInterceptRequest ( )

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

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

63  : bool
64  {
65  if (ilSession::get('used_external_auth')) {
66  return false;
67  }
68 
69  if (!$this->isInFulfillment() && ($this->user->isPasswordChangeDemanded() || $this->user->isPasswordExpired())) {
70  return true;
71  }
72 
73  return false;
74  }
static get(string $a_var)
+ Here is the call graph for this function:

◆ shouldStoreRequestTarget()

ilForcedUserPasswordChangeStartUpStep::shouldStoreRequestTarget ( )

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

43  : bool
44  {
45  return true;
46  }

Field Documentation

◆ $ctrl

ilCtrl ilForcedUserPasswordChangeStartUpStep::$ctrl
private

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

Referenced by __construct().

◆ $request

ServerRequestInterface ilForcedUserPasswordChangeStartUpStep::$request
private

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

Referenced by __construct().

◆ $user

ilObjUser ilForcedUserPasswordChangeStartUpStep::$user
private

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

Referenced by __construct().


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