简体   繁体   English

TYPO3表单-密码忘记了链接更改的电子邮件内容

[英]TYPO3 form - password forgot link change E-Mail content

I have a login form on my page. 我的页面上有一个登录表单。 I found an option in the backend so that users can reset their password. 我在后端找到了一个选项,以便用户可以重置密码。

I tried it and it works, I received an E-Mail with a link to a page where I can change the password. 我尝试了一下并成功了,我收到了一封电子邮件,其中包含指向我可以更改密码的页面的链接。

However, I try to change the content of the E-Mail because I don't like it. 但是,我尝试更改电子邮件的内容,因为我不喜欢它。

I found this: 我找到了这个:

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['felogin']['forgotPasswordMail']

Hook to change the contents of the forgot password mail 挂钩更改忘记密码邮件的内容

https://docs.typo3.org/typo3cms/extensions/felogin/Hooks/Index.html https://docs.typo3.org/typo3cms/extensions/felogin/Hooks/Index.html

I found this " Tutorial " which shows how to use hooks, but it is missing some important information. 我找到了这个“ 教程 ”,其中显示了如何使用挂钩,但是缺少一些重要信息。 Where exactly do I have to do the manipulation? 我到底要在哪里进行操纵? In which file? 在哪个文件中? How exactly do I replace the content? 如何准确替换内容?

You can "simple" change the lang parameters for felogin to change the email content. 您可以“简单”更改felogin的lang参数以更改电子邮件内容。

plugin.tx_felogin_pi1._LOCAL_LANG {
  default {
    ll_forgot_email_password (
... Your Text here for emails with password ...
    )
    ll_forgot_email_nopassword (
... Your Text here for emails where password can not found ...
    )
    ll_forgot_validate_reset_password(
... Here Text for emails with password reset link ...
    )
  }
}

You can see the default Text with placeholders here . 您可以在此处看到带占位符的默认文本。

There first line of the translation is used as the subject of the email. 翻译的第一行用作电子邮件的主题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM