log.debug("Processing Password Hint...");
// look up the user's information
try {
final User user = userManager.getUserByUsername(username);
final StringBuffer msg = new StringBuffer();
msg.append("Your password hint is: ").append(user.getPasswordHint());
msg.append("\n\nLogin at: ").append(RequestUtil.getAppURL(getServletRequest()));
message.setTo(user.getEmail());
final String subject =
'[' +getText("webapp.name", locale) + "] " +
getText("user.passwordHint", locale);
message.setSubject(subject);
message.setText(msg.toString());
mailEngine.send(message);
return user.getFullName();//XXX disabling returning user.getEmail();
} catch (final UsernameNotFoundException e) {
log.warn(e.getMessage());
} catch (final MailException me) {
log.warn(me.getMessage());
}