| @@ 136-142 (lines=7) @@ | ||
| 133 | } |
|
| 134 | ||
| 135 | // if domain doesn't exist in database, check if it's a gc.ca domain |
|
| 136 | if ($result['num'][0] <= 0) |
|
| 137 | { |
|
| 138 | if ($gcca !== 'gc.ca') |
|
| 139 | //throw new RegistrationException(elgg_echo('gcRegister:email_error')); |
|
| 140 | $resulting_error .= '- '.elgg_echo('gcRegister:invalid_email').'<br/>'; |
|
| 141 | ||
| 142 | } |
|
| 143 | ||
| 144 | if (get_input('form_type') !== 'standard') |
|
| 145 | { |
|
| @@ 533-539 (lines=7) @@ | ||
| 530 | ||
| 531 | $resulting_error = ""; |
|
| 532 | ||
| 533 | if ($result['num'][0] <= 0) { |
|
| 534 | if ($gcca !== 'gc.ca') { |
|
| 535 | $resulting_error .= elgg_echo('gcRegister:invalid_email'); |
|
| 536 | } |
|
| 537 | } |
|
| 538 | ||
| 539 | ||
| 540 | if ($resulting_error !== "") { |
|
| 541 | $response['error'] = 3; |
|
| 542 | $response['message'] = 'invalid email or email domain - must be a valid Government of Canada email address'; |
|
| @@ 778-784 (lines=7) @@ | ||
| 775 | $resulting_error = ""; |
|
| 776 | ||
| 777 | // if domain doesn't exist in database, check if it's a gc.ca domain |
|
| 778 | if ($result['num'][0] <= 0) { |
|
| 779 | if ($gcca !== 'gc.ca') { |
|
| 780 | $resulting_error .= elgg_echo('gcRegister:invalid_email'); |
|
| 781 | } |
|
| 782 | } |
|
| 783 | ||
| 784 | if ($resulting_error !== "") { |
|
| 785 | $response['error'] = 3; |
|
| 786 | $response['message'] = 'invalid email or email domain - must be a valid Government of Canada email address'; |
|
| 787 | return $response; |
|