在WSO2IS 5.3.0中,我正在从管理控制台更改电子邮件模板。
但是,当我收到邮件时,通过调用soap webservice UserInformationRecoveryServiceStub.registerUser
,我得到的是原始的原始模板。帐户确认和重置密码的附加内容相同。我尝试重新启动wso2is,同样的问题,修改已在admin gui中进行了设置,但在发送电子邮件中未进行设置。是否有缓存或注册表要事先清除/删除?
虽然,我收到的电子邮件中仍然有{}这样的示例:
Hi {{user.claim.givenname}}, You have created an account with following user name User Name: {[email protected]} Please click the following link to unlock. If clicking the link doesn't seem to work, you can copy and paste the link into your browser's address window. https://localhost:9443/accountrecoveryendpoint/confirmregistration.do?confirmation={a38a5b98-e781-4c83-863c-fa7f5c391d98}&userstoredomain={PRIMARY}&username={gribo%40xxx.com}&tenantdomain={carbon.super}&callback={{callback}}
由于您正在使用基于SOAP的服务(现在新的REST API已弃用了该服务),因此需要启用旧的电子邮件模板编辑器来编辑SOAP的模板。
为此,请打开carbon.xml
文件,然后删除/注释以下行
<HideMenuItemId>identity_mgt_emailtemplate_menu</HideMenuItemId>
更新此配置并重新启动服务器后,请在管理控制台中转到“配置->电子邮件模板”,然后在此处进行所需的更改。现在应该更新了。
请注意,“主->管理”中的电子邮件模板配置仍然存在,并且只会更改新API的模板。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句