| @@ 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 | { |
|
| @@ 561-567 (lines=7) @@ | ||
| 558 | ||
| 559 | $resulting_error = ""; |
|
| 560 | ||
| 561 | if ($result['num'][0] <= 0) { |
|
| 562 | if ($gcca !== 'gc.ca') { |
|
| 563 | $resulting_error .= elgg_echo('gcRegister:invalid_email'); |
|
| 564 | } |
|
| 565 | } |
|
| 566 | ||
| 567 | ||
| 568 | if ($resulting_error !== "") { |
|
| 569 | $response['error'] = 3; |
|
| 570 | $response['message'] = 'invalid email or email domain - must be a valid Government of Canada email address'; |
|
| @@ 808-814 (lines=7) @@ | ||
| 805 | $resulting_error = ""; |
|
| 806 | ||
| 807 | // if domain doesn't exist in database, check if it's a gc.ca domain |
|
| 808 | if ($result['num'][0] <= 0) { |
|
| 809 | if ($gcca !== 'gc.ca') { |
|
| 810 | $resulting_error .= elgg_echo('gcRegister:invalid_email'); |
|
| 811 | } |
|
| 812 | } |
|
| 813 | ||
| 814 | if ($resulting_error !== "") { |
|
| 815 | $response['error'] = 3; |
|
| 816 | $response['message'] = 'invalid email or email domain - must be a valid Government of Canada email address'; |
|
| 817 | return $response; |
|