| @@ 248-253 (lines=6) @@ | ||
| 245 | Events::create()->runFactory(); |
|
| 246 | ||
| 247 | // Load registration success page |
|
| 248 | if ($this->input->server('HTTP_X_REQUESTED_WITH') != 'XMLHttpRequest') { |
|
| 249 | $this->template->show('register_success'); |
|
| 250 | exit; |
|
| 251 | } else { |
|
| 252 | $this->template->display('register_popup', ['succes' => TRUE]); |
|
| 253 | } |
|
| 254 | } else { |
|
| 255 | ||
| 256 | $this->template->assign('info_message', $this->dx_auth->get_auth_error()); |
|
| @@ 263-267 (lines=5) @@ | ||
| 260 | $this->dx_auth->captcha(); |
|
| 261 | $this->template->assign('cap_image', $this->dx_auth->get_captcha_image()); |
|
| 262 | } |
|
| 263 | if ($this->input->server('HTTP_X_REQUESTED_WITH') != 'XMLHttpRequest') { |
|
| 264 | $this->template->show('register'); |
|
| 265 | } else { |
|
| 266 | $this->template->display('register_popup'); |
|
| 267 | } |
|
| 268 | } |
|
| 269 | } elseif (!$this->dx_auth->allow_registration) { |
|
| 270 | $data['auth_message'] = lang('Registration is prohibited.', 'auth'); |
|