ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilUserPasswordResetRequestTargetAdjustmentCase.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 require_once 'Services/User/classes/class.ilUserRequestTargetAdjustmentCase.php';
5 
10 {
14  public function shouldStoreRequestTarget()
15  {
16  return true;
17  }
18 
22  public function isInFulfillment()
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  }
33 
37  public function shouldAdjustRequest()
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  }
49 
53  public function adjust()
54  {
55  $_GET['baseClass'] = 'ilpersonaldesktopgui';
56  $this->ctrl->setTargetScript('ilias.php');
57  ilUtil::redirect($this->ctrl->getLinkTargetByClass(array('ilpersonaldesktopgui', 'ilpersonalsettingsgui'), 'showPassword', '', false, false));
58  }
59 }
$_GET["client_id"]
static get($a_var)
Get a value.
Class ilUserRequestTargetAdjustmentCase.
user()
Definition: user.php:4
Create styles array
The data for the language used.
Class ilUserProfileIncompleteAndPasswordResetRequestTargetAdjustmentCase.
static redirect($a_script)