fixes #805 and started to work on #835
[taxeditor.git] / taxeditor-store / src / main / java / eu / etaxonomy / taxeditor / dialogs / LoginDialog.java
index 115ace77c0ea8b483aeb4bccad45e9dbba46e412..01bbf5ed6188337a3b9ee595930269e00836b050 100644 (file)
@@ -96,7 +96,7 @@ public class LoginDialog extends Dialog {
                UsernamePasswordAuthenticationToken token = new UsernamePasswordAuthenticationToken(username, password); 
                
                try{
-                       CdmStore.authenticate(token);                   
+                       CdmStore.getLoginManager().authenticate(token);                 
                }catch(BadCredentialsException e){
                        logger.error("Bad credentials", e);
                        StoreUtil.warningDialog("Could not authenticate. Reason: Bad Credentials");