@@ 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 | { |
@@ 549-555 (lines=7) @@ | ||
546 | ||
547 | $resulting_error = ""; |
|
548 | ||
549 | if ($result['num'][0] <= 0) { |
|
550 | if ($gcca !== 'gc.ca') { |
|
551 | $resulting_error .= elgg_echo('gcRegister:invalid_email'); |
|
552 | } |
|
553 | } |
|
554 | ||
555 | ||
556 | if ($resulting_error !== "") { |
|
557 | $response['error'] = 3; |
|
558 | $response['message'] = 'invalid email or email domain - must be a valid Government of Canada email address'; |
|
@@ 796-802 (lines=7) @@ | ||
793 | $resulting_error = ""; |
|
794 | ||
795 | // if domain doesn't exist in database, check if it's a gc.ca domain |
|
796 | if ($result['num'][0] <= 0) { |
|
797 | if ($gcca !== 'gc.ca') { |
|
798 | $resulting_error .= elgg_echo('gcRegister:invalid_email'); |
|
799 | } |
|
800 | } |
|
801 | ||
802 | if ($resulting_error !== "") { |
|
803 | $response['error'] = 3; |
|
804 | $response['message'] = 'invalid email or email domain - must be a valid Government of Canada email address'; |
|
805 | return $response; |