ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilUserPasswordResetRequestTargetAdjustmentCase Class Reference

Class ilUserProfileIncompleteAndPasswordResetRequestTargetAdjustmentCase. More...

+ Inheritance diagram for ilUserPasswordResetRequestTargetAdjustmentCase:
+ Collaboration diagram for ilUserPasswordResetRequestTargetAdjustmentCase:

Public Member Functions

 shouldStoreRequestTarget ()
 
 isInFulfillment ()
 
 shouldAdjustRequest ()
 
 adjust ()
 
- Public Member Functions inherited from ilUserRequestTargetAdjustmentCase
 __construct (ilObjUser $user, ilCtrl $ctrl)
 
 shouldStoreRequestTarget ()
 
 shouldAdjustRequest ()
 
 isInFulfillment ()
 
 adjust ()
 

Additional Inherited Members

- Protected Attributes inherited from ilUserRequestTargetAdjustmentCase
 $ctrl
 
 $user
 

Detailed Description

Class ilUserProfileIncompleteAndPasswordResetRequestTargetAdjustmentCase.

Definition at line 9 of file class.ilUserPasswordResetRequestTargetAdjustmentCase.php.

Member Function Documentation

◆ adjust()

ilUserPasswordResetRequestTargetAdjustmentCase::adjust ( )
Returns
void

Definition at line 53 of file class.ilUserPasswordResetRequestTargetAdjustmentCase.php.

References $_GET, array, and ilUtil\redirect().

54  {
55  $_GET['baseClass'] = 'ilpersonaldesktopgui';
56  $this->ctrl->setTargetScript('ilias.php');
57  ilUtil::redirect($this->ctrl->getLinkTargetByClass(array('ilpersonaldesktopgui', 'ilpersonalsettingsgui'), 'showPassword', '', false, false));
58  }
$_GET["client_id"]
Create styles array
The data for the language used.
static redirect($a_script)
+ Here is the call graph for this function:

◆ isInFulfillment()

ilUserPasswordResetRequestTargetAdjustmentCase::isInFulfillment ( )
Returns
boolean

Definition at line 22 of file class.ilUserPasswordResetRequestTargetAdjustmentCase.php.

References $_GET, and array.

Referenced by shouldAdjustRequest().

23  {
24  if (!isset($_GET['baseClass']) || strtolower($_GET['baseClass']) != 'ilpersonaldesktopgui') {
25  return false;
26  }
27 
28  return (
29  strtolower($this->ctrl->getCmdClass()) == 'ilpersonalsettingsgui' &&
30  in_array(strtolower($this->ctrl->getCmd()), array('showpassword', 'savepassword'))
31  );
32  }
$_GET["client_id"]
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ shouldAdjustRequest()

ilUserPasswordResetRequestTargetAdjustmentCase::shouldAdjustRequest ( )
Returns
boolean

Definition at line 37 of file class.ilUserPasswordResetRequestTargetAdjustmentCase.php.

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

38  {
39  if (ilSession::get('used_external_auth')) {
40  return false;
41  }
42 
43  if (!$this->isInFulfillment() && ($this->user->isPasswordChangeDemanded() || $this->user->isPasswordExpired())) {
44  return true;
45  }
46 
47  return false;
48  }
static get($a_var)
Get a value.
user()
Definition: user.php:4
+ Here is the call graph for this function:

◆ shouldStoreRequestTarget()

ilUserPasswordResetRequestTargetAdjustmentCase::shouldStoreRequestTarget ( )
Returns
boolean

Definition at line 14 of file class.ilUserPasswordResetRequestTargetAdjustmentCase.php.

15  {
16  return true;
17  }

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