|
@@ 108-116 (lines=9) @@
|
| 105 |
|
return $this->controller->redirect($this->controller->Link('changepassword')); |
| 106 |
|
} |
| 107 |
|
$loginResult = $service->authenticate($userData['samaccountname'], $data['OldPassword']); |
| 108 |
|
if (!$loginResult['success']) { |
| 109 |
|
$this->clearMessage(); |
| 110 |
|
$this->sessionMessage( |
| 111 |
|
_t('Member.ERRORPASSWORDNOTMATCH', 'Your current password does not match, please try again'), |
| 112 |
|
'bad' |
| 113 |
|
); |
| 114 |
|
// redirect back to the form, instead of using redirectBack() which could send the user elsewhere. |
| 115 |
|
return $this->controller->redirect($this->controller->Link('changepassword')); |
| 116 |
|
} |
| 117 |
|
} |
| 118 |
|
|
| 119 |
|
if (!$member) { |
|
@@ 183-191 (lines=9) @@
|
| 180 |
|
// redirect back to the form, instead of using redirectBack() which could send the user elsewhere. |
| 181 |
|
return $this->controller->redirect($this->controller->Link('changepassword')); |
| 182 |
|
} |
| 183 |
|
} else { |
| 184 |
|
$this->clearMessage(); |
| 185 |
|
$this->sessionMessage( |
| 186 |
|
_t('Member.ERRORNEWPASSWORD', 'You have entered your new password differently, try again'), |
| 187 |
|
'bad' |
| 188 |
|
); |
| 189 |
|
|
| 190 |
|
// redirect back to the form, instead of using redirectBack() which could send the user elsewhere. |
| 191 |
|
return $this->controller->redirect($this->controller->Link('changepassword')); |
| 192 |
|
} |
| 193 |
|
} |
| 194 |
|
} |