ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 ()
 
 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 84 of file class.ilForcedUserPasswordChangeStartUpStep.php.

84 : void
85 {
86 $this->ctrl->redirectToURL(
87 $this->ctrl->getLinkTargetByClass(
88 [
89 ilDashboardGUI::class,
90 PersonalSettingsGUI::class,
91 ilLocalUserPasswordSettingsGUI::class
92 ],
94 )
95 );
96 }

References ilLocalUserPasswordSettingsGUI\CMD_SHOW_PASSWORD, and 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 46 of file class.ilForcedUserPasswordChangeStartUpStep.php.

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

References ilLocalUserPasswordSettingsGUI\CMD_SAVE_PASSWORD, ilLocalUserPasswordSettingsGUI\CMD_SHOW_PASSWORD, and 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 70 of file class.ilForcedUserPasswordChangeStartUpStep.php.

70 : bool
71 {
72 if (ilSession::get('used_external_auth_mode')) {
73 return false;
74 }
75
76 if (!$this->isInFulfillment() && ($this->user->isPasswordChangeDemanded() || $this->user->isPasswordExpired(
77 ))) {
78 return true;
79 }
80
81 return false;
82 }
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 41 of file class.ilForcedUserPasswordChangeStartUpStep.php.

41 : bool
42 {
43 return true;
44 }

Field Documentation

◆ $ctrl

ilCtrl ilForcedUserPasswordChangeStartUpStep::$ctrl
private

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

Referenced by __construct().

◆ $request

ServerRequestInterface ilForcedUserPasswordChangeStartUpStep::$request
private

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

Referenced by __construct().

◆ $user

ilObjUser ilForcedUserPasswordChangeStartUpStep::$user
private

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

Referenced by __construct().


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