@@ 171-175 (lines=5) @@ | ||
168 | } |
|
169 | ||
170 | // Load login page view |
|
171 | if ($this->input->server('HTTP_X_REQUESTED_WITH') != 'XMLHttpRequest') { |
|
172 | $this->template->show('login'); |
|
173 | } else { |
|
174 | $this->template->display('login_popup'); |
|
175 | } |
|
176 | } |
|
177 | } |
|
178 | } else { |
|
@@ 320-324 (lines=5) @@ | ||
317 | $this->template->assign('info_message', $this->dx_auth->_auth_error); |
|
318 | } |
|
319 | ||
320 | if ($this->input->server('HTTP_X_REQUESTED_WITH') != 'XMLHttpRequest') { |
|
321 | $this->template->show('forgot_password'); |
|
322 | } else { |
|
323 | $this->template->display('forgot_password'); |
|
324 | } |
|
325 | } |
|
326 | ||
327 | /** |
|
@@ 345-349 (lines=5) @@ | ||
342 | $data['auth_message'] = lang('You have successfully zeroed my password. ', 'auth'); |
|
343 | ||
344 | $this->template->assign('auth_message', $data['auth_message']); |
|
345 | if ($this->input->server('HTTP_X_REQUESTED_WITH') != 'XMLHttpRequest') { |
|
346 | $this->template->show('reset_password'); |
|
347 | } else { |
|
348 | $this->template->display('reset_password'); |
|
349 | } |
|
350 | } else { |
|
351 | $data['auth_message'] = lang('Reset failed. Possible reasons: wrong email, wrong restore url, used restore url', 'auth'); |
|
352 | ||
@@ 354-358 (lines=5) @@ | ||
351 | $data['auth_message'] = lang('Reset failed. Possible reasons: wrong email, wrong restore url, used restore url', 'auth'); |
|
352 | ||
353 | $this->template->assign('auth_message', $data['auth_message']); |
|
354 | if ($this->input->server('HTTP_X_REQUESTED_WITH') != 'XMLHttpRequest') { |
|
355 | $this->template->show('reset_password'); |
|
356 | } else { |
|
357 | $this->template->display('reset_password'); |
|
358 | } |
|
359 | } |
|
360 | } |
|
361 |