@@ 73-81 (lines=9) @@ | ||
70 | return $this->controller->redirect($this->controller->Link('changepassword')); |
|
71 | } |
|
72 | $loginResult = $service->authenticate($userData['samaccountname'], $data['OldPassword']); |
|
73 | if (!$loginResult['success']) { |
|
74 | $this->clearMessage(); |
|
75 | $this->sessionMessage( |
|
76 | _t('Member.ERRORPASSWORDNOTMATCH', "Your current password does not match, please try again"), |
|
77 | "bad" |
|
78 | ); |
|
79 | // redirect back to the form, instead of using redirectBack() which could send the user elsewhere. |
|
80 | return $this->controller->redirect($this->controller->Link('changepassword')); |
|
81 | } |
|
82 | } |
|
83 | ||
84 | if (!$member) { |
|
@@ 143-151 (lines=9) @@ | ||
140 | // redirect back to the form, instead of using redirectBack() which could send the user elsewhere. |
|
141 | return $this->controller->redirect($this->controller->Link('changepassword')); |
|
142 | } |
|
143 | } else { |
|
144 | $this->clearMessage(); |
|
145 | $this->sessionMessage( |
|
146 | _t('Member.ERRORNEWPASSWORD', "You have entered your new password differently, try again"), |
|
147 | "bad"); |
|
148 | ||
149 | // redirect back to the form, instead of using redirectBack() which could send the user elsewhere. |
|
150 | return $this->controller->redirect($this->controller->Link('changepassword')); |
|
151 | } |
|
152 | } |
|
153 | } |
|
154 |