Hello..
Is the code that you are using your own, or is it from Arams SSbits "user registration and edit member profiles tutorial"? if it is from SSbits then this is what i had to do to get it to work (SS 3.1)
public function submit($data, $form) {
// Throw error if email is not unique
if (!($data['Email']) || Member::get()->filter('Email', $data['Email'])->Count()) {
$form->addErrorMessage('Email', 'Email in use,please use another', 'bad');
//Set form data from submitted values
// Session::set("FormInfo.Form_RegistrationForm.data", $data);
return $this->redirectBack();
}
I had to make many changes to have the SSbits code compatible with SS3.1, if you would like the complete (working 100% code) then i have no problem zipping it and attaching to this post, if you do want the archive just holler..
Regards
Martin