diff --git a/src/Forms/MemberProfileValidator.php b/src/Forms/MemberProfileValidator.php index 5965c1b6..8bf8f358 100644 --- a/src/Forms/MemberProfileValidator.php +++ b/src/Forms/MemberProfileValidator.php @@ -113,6 +113,12 @@ public function php($data) if (isset($data['Password']) && $data['Password'] !== "") { if (is_null($member)) { $member = Member::create(); + + //pass in the Unique Identifier Field (usually Email) + $idField = Member::config()->get('unique_identifier_field'); + if(isset($data[$idField])) { + $member->$idField = $data[$idField]; + } } if ($validator = $member::password_validator()) {