// change others passwords
CdmStore.getService(IUserService.class).changePasswordForUser(user.getUsername(), passwordPage.getNewPassword());
}
// change others passwords
CdmStore.getService(IUserService.class).changePasswordForUser(user.getUsername(), passwordPage.getNewPassword());
}
internalConversation.commit(false);
internalConversation.unbind();
internalConversation.close();
internalConversation.commit(false);
internalConversation.unbind();
internalConversation.close();
return false;
}catch (AuthenticationException e){
MessagingUtils.warningDialog("Could not change password", this, "The old password is not correct.");
return false;
}catch (AuthenticationException e){
MessagingUtils.warningDialog("Could not change password", this, "The old password is not correct.");
return false;
}catch(Exception e){
MessagingUtils.warningDialog("Problem with changing password", this, "The password could not be changed. " + e.getMessage());
return false;
}catch(Exception e){
MessagingUtils.warningDialog("Problem with changing password", this, "The password could not be changed. " + e.getMessage());