首页 > 解决方案 > 如何更改rainlab.user::mail.invite 以获得激活链接

问题描述

我正在使用 rainlabs 用户插件,但我不允许用户注册,但我手动添加新用户,但我仍然希望新用户激活他们的帐户我想我可以将 mail.invite 模板更改为

Hello {{ name }}

A user account has been created for you. Please use the following login and password to sign in:

{% partial 'panel' body %}
- Login: `{{ login }}`
- Password: `{{ password|raw }}`
{% endpartial %}

We need to verify that this is your email address.

Please click the link below to confirm your account:

{% partial 'button' url=link type='positive' body %}
Confirm account
{% endpartial %}

After signing in you should change your password as soon as possible.

部分有效,但按钮不再包含激活 URL 是否有更好的解决方案,或者我需要更改插件

标签: octobercmsoctobercms-pluginsoctobercms-user-plugin

解决方案


推荐阅读