import org.eclipse.jface.wizard.Wizard;
import org.eclipse.swt.widgets.Display;
import org.springframework.security.access.AccessDeniedException;
+import org.springframework.security.core.AuthenticationException;
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
import eu.etaxonomy.cdm.api.conversation.IConversationEnabled;
return true;
}catch(AccessDeniedException 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());