Revision 52cb78b3
Added by Katja Luther over 8 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/password/PasswordWizard.java | ||
---|---|---|
13 | 13 |
import org.eclipse.jface.wizard.Wizard; |
14 | 14 |
import org.eclipse.swt.widgets.Display; |
15 | 15 |
import org.springframework.security.access.AccessDeniedException; |
16 |
import org.springframework.security.core.AuthenticationException; |
|
16 | 17 |
|
17 | 18 |
import eu.etaxonomy.cdm.api.conversation.ConversationHolder; |
18 | 19 |
import eu.etaxonomy.cdm.api.conversation.IConversationEnabled; |
... | ... | |
78 | 79 |
return true; |
79 | 80 |
}catch(AccessDeniedException e){ |
80 | 81 |
MessagingUtils.warningDialog("Could not change password", this, "The old password is not correct."); |
81 |
|
|
82 |
return false; |
|
83 |
}catch (AuthenticationException e){ |
|
84 |
MessagingUtils.warningDialog("Could not change password", this, "The old password is not correct."); |
|
85 |
|
|
82 | 86 |
return false; |
83 | 87 |
}catch(Exception e){ |
84 | 88 |
MessagingUtils.warningDialog("Problem with changing password", this, "The password could not be changed. " + e.getMessage()); |
Also available in: Unified diff
change Password returns different messages for different problems