Page 1 of 1
User Id in notification email
PostPosted:Wed Apr 10, 2013 5:32 am
by taihung
In [Administration] -> [Config]
The default value of Key notification.message.body is :
Code: Select all<b>Document: </b><a href="${documentUrl}">${documentPath}</a><br/>
<b>User: </b>${userId}<br/><b>Message: </b>${notificationMessage}<br/>
Can I change ${userId} to user Name?
Thanks.
Re: User Id in notification email
PostPosted:Thu Apr 11, 2013 7:56 am
by pavila
Currently is not possible, but I have added it as future enhancement.
Re: User Id in notification email
PostPosted:Mon Aug 19, 2024 1:53 pm
by MarcoOliveira
Hi. Is this already possible to do?
If yes, I can replace "userId" for what? userName?
Version: 6.3.12 CE
Re: User Id in notification email
PostPosted:Mon Aug 19, 2024 5:06 pm
by jllort
Not implemented and because we are in way to do a major release will not be updated in the current code ( in the major release will coming ).
if you wish to have it now could edit the code at this point:
https://github.com/openkm/document-mana ... e.java#L84
And do something like:
Code: Select allString userName = new DbAuthModule().getName(null, userId);
Map<String, Object> model = new HashMap<>();
model.put("userId", userId);
model.put("userName", userName);
model.put("notificationMessage", message);
model.put("documentList", col);
Re: User Id in notification email
PostPosted:Tue Aug 20, 2024 11:27 am
by MarcoOliveira
How I can find this file?
I find in this folder
/home/openkm/tomcat-8.5.69/webapps/OpenKM/WEB-INF/classes/com/openkm/ws/common
but is full encrypted
Re: User Id in notification email
PostPosted:Tue Aug 20, 2024 5:14 pm
by jllort
You must download the code, modify the class and build the project
https://docs.openkm.com/kcenter/view/ok ... nment.html