2017-02-01 46 views
0

在WSO2IS 5.3.0中,我正在從管理控制檯更改電子郵件模板。WSO2IS 5.3.0 - 電子郵件模板問題

但是,當我收到郵件,通過調用soap webservice UserInformationRecoveryServiceStub.registerUser,我得到原來的以前的模板。 同樣的東西附加帳戶確認和重置密碼。 我試着重新啓動wso2is,同樣的問題,修改設置在管理gui中,但不是在發送電子郵件。 是否有緩存或註冊表以前清除/刪除?

雖然,我仍然receving的電子郵件有{}喜歡爲例:

 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}} 

回答

1

由於您使用的是基於SOAP的服務(現在由新REST APIs不建議使用),你需要使舊電子郵件模板編輯器能夠編輯SOAP模板。

要做到這一點打開carbon.xml文件,並刪除/註釋以下行

<HideMenuItemId>identity_mgt_emailtemplate_menu</HideMenuItemId>

更新此配置並重新啓動服務器後,進入「配置 - >電子郵件模板」在管理控制檯並在那裏做必要的改變。現在它應該得到更新。

請注意,「Main - > Manage」中的電子郵件模板配置仍然存在,並且只會更改新API的模板。

+0

感謝您的回答,信息應該在移植指南和電子郵件模板文檔中更明確地描述。 在其餘的api文檔中,我看不到任何tenan參數在註冊方法中,它是租戶明智的嗎? – gribo