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
4require_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}
user()
Definition: user.php:4
$_GET["client_id"]
An exception for terminatinating execution or to throw for unit testing.
static get($a_var)
Get a value.
Class ilUserProfileIncompleteAndPasswordResetRequestTargetAdjustmentCase.
Class ilUserRequestTargetAdjustmentCase.
static redirect($a_script)