// If user set both password and passwordConfirm then reset password
if ( !StringUtils.isEmpty(form.getPasswordText())
&& !StringUtils.isEmpty(form.getPasswordConfirm())) {
try {
data.resetPassword(RollerFactory.getRoller(),
form.getPasswordText(),
form.getPasswordConfirm());
} catch (RollerException e) {
msgs.add(ActionMessages.GLOBAL_MESSAGE,
new ActionMessage("yourProfile.passwordResetError"));