dta43039 2016-12-14 07:55
浏览 69
已采纳

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

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

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?

  • 写回答

1条回答 默认 最新

  • doujianchao7446 2016-12-14 08:04
    关注

    You can "simple" change the lang parameters for felogin to change the email content.

    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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Android Studio中如何把H5逻辑放在Assets 文件夹中以实现将h5代码打包为apk
  • ¥15 使用小程序wx.createWebAudioContext()开发节拍器
  • ¥15 关于#爬虫#的问题:请问HMDB代谢物爬虫的那个工具可以提供一下吗
  • ¥15 vue3+electron打包获取本地视频属性,文件夹里面有ffprobe.exe 文件还会报错这是什么原因呢?
  • ¥20 用51单片机控制急停。
  • ¥15 孟德尔随机化结果不一致
  • ¥15 在使用pyecharts时出现问题
  • ¥15 深度学习残差模块模型
  • ¥50 怎么判断同步时序逻辑电路和异步时序逻辑电路
  • ¥15 差动电流二次谐波的含量Matlab计算