ILIAS  release_7 Revision v7.30-3-g800a261c036
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)
 ilForcedUserPasswordChangeStartUpStep constructor. More...
 
 shouldStoreRequestTarget ()
 
 isInFulfillment ()
 
 shouldInterceptRequest ()
 
 execute ()
 
- Public Member Functions inherited from ILIAS\Init\StartupSequence\StartUpSequenceStep
 shouldStoreRequestTarget ()
 
 shouldInterceptRequest ()
 
 isInFulfillment ()
 
 execute ()
 

Private Attributes

 $user
 
 $ctrl
 
 $request
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

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

ilForcedUserPasswordChangeStartUpStep constructor.

Parameters
ilObjUser$user
ilCtrl$ctrl
ServerRequestInterface$request

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

References $ctrl, $request, $user, and user().

+ Here is the call graph for this function:

Member Function Documentation

◆ execute()

ilForcedUserPasswordChangeStartUpStep::execute ( )
Returns
void

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

77  : void
78  {
79  $this->ctrl->initBaseClass('ildashboardgui');
80  $this->ctrl->redirectByClass(
81  ['ildashboardgui', 'ilpersonalsettingsgui'],
82  'showPassword'
83  );
84  }

◆ isInFulfillment()

ilForcedUserPasswordChangeStartUpStep::isInFulfillment ( )
Returns
boolean

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

Referenced by shouldInterceptRequest().

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

◆ shouldInterceptRequest()

ilForcedUserPasswordChangeStartUpStep::shouldInterceptRequest ( )
Returns
boolean

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

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

61  : bool
62  {
63  if (ilSession::get('used_external_auth')) {
64  return false;
65  }
66 
67  if (!$this->isInFulfillment() && ($this->user->isPasswordChangeDemanded() || $this->user->isPasswordExpired())) {
68  return true;
69  }
70 
71  return false;
72  }
static get($a_var)
Get a value.
user()
Definition: user.php:4
+ Here is the call graph for this function:

◆ shouldStoreRequestTarget()

ilForcedUserPasswordChangeStartUpStep::shouldStoreRequestTarget ( )
Returns
boolean

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

35  : bool
36  {
37  return true;
38  }

Field Documentation

◆ $ctrl

ilForcedUserPasswordChangeStartUpStep::$ctrl
private

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

Referenced by __construct().

◆ $request

ilForcedUserPasswordChangeStartUpStep::$request
private

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

Referenced by __construct().

◆ $user

ilForcedUserPasswordChangeStartUpStep::$user
private

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

Referenced by __construct().


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