> > if (username == null || "".equals(username)) {
> > > > > > > > > log.warn("Username not specified, notifying user
that it's a
> > > > > > > > > required field.");
> > > > > &g
; > > > addError("errors.required",
getText("user.username"));
> > > > > > > > return null;
> > > > > > > > }
> > > > > > > >
> > > > >
> > >
> > > > > > > if (log.isDebugEnabled()) {
> > > > > > > log.debug("Processing Password Hint...");
> > > > > > > }
> > > > > > >
> > > > > >
gt; > > > > User user = userManager.getUserByUsername(username);
> > > > > >
> > > > > > StringBuffer msg = new StringBuffer();
> > > > > > msg.append("Your password hint is: " +
> &g
;) + "] " +
> > getText("user.passwordHint");
> > message.setSubject(subject);
> > message.setText(msg.toString());
> > mailEngine.send(message);
> >
> > addMessage("login.passwordHint.se
// look up the user's information
> > > > > try {
> > > > > User user = userManager.getUserByUsername(username);
> > > > >
> > > > > StringBuffer msg = new StringBuffer();
> > > > > ms
; > > > msg.append("Your password hint is: " +
> > > user.getPasswordHint());
> > > > msg.append("\n\nLogin at: " +
> > > > RequestUtil.getAppURL(getRequest()));
> > > >
> > > >
message.setTo(user.getEmail());
> > > String subject = '[' + getText("webapp.name") + "] " +
> > > getText("user.passwordHint");
> > > message.setSubject(subject);
> > > message.set
String subject = '[' + getText("webapp.name") + "] " +
> > getText("user.passwordHint");
> > message.setSubject(subject);
> > message.setText(msg.toString());
> > mailEngine.send(message);
> >
ect(subject);
> message.setText(msg.toString());
> mailEngine.send(message);
>
> addMessage("login.passwordHint.sent ",
>new Object[] { username, user.getEmail() });
>
> } catch (Exception e) {
>
}
return "success";
}
This worked fine in 1.1.4, but for some reason - 1.1.5 keeps redirecting
back to the same page. Any ideas?
Thanks,
Matt
--
View this message in context:
http://www.nabble.com/Upgrading-from-MyFaces-1.1.4-to-1.1.5-tf3271040.html#a9094577
Sent from the MyFaces - Users mailing list archive at Nabble.com.
addError("login.passwordHint.error", username);
}
return "success";
}
This worked fine in 1.1.4, but for some reason - 1.1.5 keeps redirecting
back to the same page. Any ideas?
Thanks,
Matt
--
View this message in context:
http://www.nabble.com/Upgrading-from-MyFaces-1.1.4-to-1.1.5-tf3271040.html#a9094577
Sent from the MyFaces - Users mailing list archive at Nabble.com.
12 matches
Mail list logo