formhandler typo3 feuser double opt in

时间:2014-02-01 12:19:59

标签: typo3

我有一个扩展名为formhandler的用户注册表单,并在右侧的sysfolder中创建了一个用户。但是通过电子邮件创建和发送的双重选择链接不起作用。用户仍然隐藏。我认为该链接不包含带有feuserdata的sysfolder。当我单击链接时,我收到错误消息:找不到授权代码,并且授权可能已经完成。但事实并非如此。

plugin.Tx_Formhandler.settings.predef.register {
name = Formhandler User Registration
templateFile = typo3conf/templates/main/plugins/formhandler/register.html
disableWrapInBaseClass = 1
formID = registration
formValuesPrefix = feregistration
isErrorMarker.default = error
isErrorMarker {
    global = error
}

preProcessors {
    1.class = PreProcessor_LoadGetPost
    2.class = PreProcessor_ValidateAuthCode
    2.config {
        redirectPage = 1045
        hiddenField = hidden
        selectFields = email
        additionalParams = COA
        additionalParams {
            10 = TEXT
            10.value = &pid=1044
        }
    }
}
finishers {
    1.class = Finisher_DB
    1.config {
        table = fe_users
        fields {
            pid.postProcessing =  1044
            email.mapping = email
            username.mapping = email
            password.mapping = password
            password.special = saltedpassword
            password.special.field = password
            first_name.mapping = firstname
            last_name.mapping = name
            address.mapping = streetno
            usergroup.ifIsEmpty = 1
            disable.ifIsEmpty = 1
        }
    }
    2.class = Finisher_GenerateAuthCode
    2.config {
        table = fe_users
        fields {
            pid.postProcessing = 1044
        }
        selectFields = email
    }
    3.class = Finisher_DB
    3.config {
        table = fe_users
        updateInsteadOfInsert = 1
        fields {
            fe_cruser_id.special = inserted_uid
            fe_cruser_id.special.table = fe_users
        }
    }
    4.class = Finisher_Mail
    4.config {
        checkBinaryCrLf = message
        admin {

            to_email = admin@mail.de

            subject = TEXT
            subject.dataWrap = Neue Registrierung: {GP:formhandler|firstname} {GP:formhandler|name}
            sender_email = email
            replyto_email = email
        }
        user {
            to_email = email
            to_name = name
            subject = Vielen Dank für deine Registrierung
            sender_email = user@mail.de
            sender_name = user
            replyto_email = user@mail.de
            replyto_name = user
        }
    }
    5.class = Finisher_SubmittedOK
    5.config {
        returns = 1
    }
}

}

我尝试将sysfolder pid作为附加参数包含但是url没有获取此参数。

1 个答案:

答案 0 :(得分:0)

在您的预处理器中,hiddenField应为disable。如果验证了验证码,则这是要设置为0的字段的名称。您还应确保表单中实际存在名为disable且值为1的隐藏字段。