|
@@ 193-201 (lines=9) @@
|
| 190 |
|
$forumGroup = Group::get()->filter('Code', 'forum-members')->first(); |
| 191 |
|
|
| 192 |
|
if ($member = Member::get()->filter('Email', $data['Email'])->first()) { |
| 193 |
|
if ($member) { |
| 194 |
|
$form->addErrorMessage( |
| 195 |
|
"Blurb", |
| 196 |
|
_t('ForumMemberProfile.EMAILEXISTS', 'Sorry, that email address already exists. Please choose another.'), |
| 197 |
|
"bad" |
| 198 |
|
); |
| 199 |
|
|
| 200 |
|
// Load errors into session and post back |
| 201 |
|
Session::set("FormInfo.Form_RegistrationForm.data", $data); |
| 202 |
|
return $this->redirectBack(); |
| 203 |
|
} |
| 204 |
|
} elseif ($this->getForumHolder()->OpenIDAvailable() |
|
@@ 529-539 (lines=11) @@
|
| 526 |
|
// person who is editing their profile - if so, throw an error |
| 527 |
|
$existingMember = DataObject::get_one('Member', "\"Email\" = '$SQL_email'"); |
| 528 |
|
if ($existingMember) { |
| 529 |
|
if ($existingMember->ID != $member->ID) { |
| 530 |
|
$form->addErrorMessage( |
| 531 |
|
'Blurb', |
| 532 |
|
_t( |
| 533 |
|
'ForumMemberProfile.EMAILEXISTS', |
| 534 |
|
'Sorry, that email address already exists. Please choose another.' |
| 535 |
|
), |
| 536 |
|
'bad' |
| 537 |
|
); |
| 538 |
|
|
| 539 |
|
return $this->redirectBack(); |
| 540 |
|
} |
| 541 |
|
} |
| 542 |
|
|