/** * Method that creates the login form for this authentication method * * @param Controller The parent controller, necessary to create the * appropriate form action tag * @return Form Returns the login form to use with this authentication * method */ public static function get_login_form(Controller $controller) { return MemberLoginForm::create($controller, "LoginForm"); }
/** * Factory method for the lost password form * * @return Form Returns the lost password form */ public function LostPasswordForm() { return MemberLoginForm::create($this, 'LostPasswordForm', new FieldList(new EmailField('Email', _t('Member.EMAIL', 'Email'))), new FieldList(new FormAction('forgotPassword', _t('Security.BUTTONSEND', 'Send me the password reset link'))), false); }
public function LoginForm() { $form = MemberLoginForm::create($this->owner, 'LoginForm'); $this->owner->extend('updateLoginForm', $form); return $form; }