Jump to:

10979 Posts in 2722 Topics by 1815 members

All other Modules

SilverStripe Forums » All other Modules » Front-end Password issue on Front-end Member Registration

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 317 Views
  • congii
    Community Member
    6 Posts

    Front-end Password issue on Front-end Member Registration Link to this post

    Hi, on SS 3.0.3 I have a front-end registration form and it seems the password saved using the form is different than the one saved on the database. Thus when a member register, he/she can't login. I have to manually change the password on the CMS.

    Front-end Form Fields

    ,new TextField('Email', 'Email *')
    ,new TextField('JobTitle', 'Job Title *')
    , new ConfirmedPasswordField('Password', 'New Password')

    Form Action

    if($member = DataObject::get_one("Member", "`Email` = '". Convert::raw2sql($data['Email']) . "'"))
    $form->AddErrorMessage('Email', "Sorry, that email address already exists. Please choose another.", 'bad');

    Session::set("FormInfo.StaffManagementPage_StaffManagementPage.data", $data);

    return $this->redirectBack();;         

    $member = new Member();

    if($userGroup = DataObject::get_one('Group', "Code = 'staff'"))
    Group::addToGroupByName($member, 'staff');

    Any idea would be very much appreaciated.


Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.