Add more info to notification email.

This commit is contained in:
Paulo Gustavo Veiga 2012-08-31 20:56:51 -03:00
parent 052494a6a5
commit b855da47d0
2 changed files with 5 additions and 2 deletions

View File

@ -173,8 +173,9 @@ final public class NotificationService {
model.put("fullName", (user != null ? user.getFullName() : "'anonymous'"));
model.put("email", (user != null ? user.getEmail() : "'anonymous'"));
model.put("userAgent", request.getHeader(UserAgent.USER_AGENT_HEADER));
model.put("server", request.getScheme() + "://" + request.getServerName() + "/" + request.getServerPort());
model.put("server", request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort());
model.put("requestURI", request.getRequestURI());
model.put("method", request.getMethod());
model.put("remoteAddress", request.getRemoteAddr());
try {

View File

@ -5,8 +5,10 @@
<li>Email: ${email}</li>
<li>Server: ${server}</li>
<li>RequestURI: ${requestURI}</li>
<li>Method: ${method}</li>
<li>User Agent: ${userAgent}</li>
<li>remoteAddress: ${remoteAddress}</li>
<li>Remote Address: ${remoteAddress}</li>
#if($mapId)
<li>Mindmap Id: ${mapId}</li>