ILIAS  release_8 Revision v8.24
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 ()
 
 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 ( )
Returns
void

Reimplemented from ILIAS\Init\StartupSequence\StartUpSequenceStep.

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

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

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ isInFulfillment()

ilForcedUserPasswordChangeStartUpStep::isInFulfillment ( )
Returns
bool

Reimplemented from ILIAS\Init\StartupSequence\StartUpSequenceStep.

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

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 }

References ILIAS\Repository\ctrl().

Referenced by shouldInterceptRequest().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ shouldInterceptRequest()

ilForcedUserPasswordChangeStartUpStep::shouldInterceptRequest ( )
Returns
bool

Reimplemented from ILIAS\Init\StartupSequence\StartUpSequenceStep.

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

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)

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

+ Here is the call graph for this function:

◆ shouldStoreRequestTarget()

ilForcedUserPasswordChangeStartUpStep::shouldStoreRequestTarget ( )
Returns
bool

Reimplemented from ILIAS\Init\StartupSequence\StartUpSequenceStep.

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: