ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 56 of file class.ilUserPasswordResetRequestTargetAdjustmentCase.php.

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

57  {
58  $_GET['baseClass'] = 'ilpersonaldesktopgui';
59  $this->ctrl->setTargetScript('ilias.php');
60  ilUtil::redirect($this->ctrl->getLinkTargetByClass(array('ilpersonaldesktopgui', 'ilpersonalsettingsgui'), 'showPassword', '', false, false));
61  }
$_GET["client_id"]
Create styles array
The data for the language used.
static redirect($a_script)
http redirect to other 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  {
26  return false;
27  }
28 
29  return (
30  strtolower($this->ctrl->getCmdClass()) == 'ilpersonalsettingsgui' &&
31  in_array(strtolower($this->ctrl->getCmd()), array('showpassword', 'savepassword'))
32  );
33  }
$_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 38 of file class.ilUserPasswordResetRequestTargetAdjustmentCase.php.

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

39  {
40  if(ilSession::get('used_external_auth'))
41  {
42  return false;
43  }
44 
45  if(!$this->isInFulfillment() && ($this->user->isPasswordChangeDemanded() || $this->user->isPasswordExpired()))
46  {
47  return true;
48  }
49 
50  return false;
51  }
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: