From 640b11b99f65de55d68750b6139583e5a12e611c Mon Sep 17 00:00:00 2001 From: Selvasundaram Date: Mon, 18 Jul 2011 22:37:18 +0530 Subject: Removing the background flash image from change password wizard and New password authentication failed bug fix --- .../src/com/gluster/storage/management/client/UsersClient.java | 1 + .../src/com/gluster/storage/management/gui/dialogs/LoginDialog.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/com.gluster.storage.management.client/src/com/gluster/storage/management/client/UsersClient.java b/src/com.gluster.storage.management.client/src/com/gluster/storage/management/client/UsersClient.java index 4c94438b..c0590d5f 100644 --- a/src/com.gluster.storage.management.client/src/com/gluster/storage/management/client/UsersClient.java +++ b/src/com.gluster.storage.management.client/src/com/gluster/storage/management/client/UsersClient.java @@ -24,6 +24,7 @@ import com.gluster.storage.management.core.model.Status; import com.sun.jersey.api.representation.Form; import com.sun.jersey.core.util.Base64; + public class UsersClient extends AbstractClient { private static final String RESOURCE_NAME = "users"; private static final String FORM_PARAM_OLD_PASSWORD = "oldpassword"; diff --git a/src/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/dialogs/LoginDialog.java b/src/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/dialogs/LoginDialog.java index 62159c38..6cb15d6a 100644 --- a/src/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/dialogs/LoginDialog.java +++ b/src/com.gluster.storage.management.gui/src/com/gluster/storage/management/gui/dialogs/LoginDialog.java @@ -208,8 +208,8 @@ public class LoginDialog extends Dialog { // authentication successful. close the login dialog and open the next one. close(); - // If the password is default, Let user to change the password + // If the password is default, Let user to change the password if (password.equalsIgnoreCase(CoreConstants.DEFAULT_PASSWORD)) { String oldSecurityTokeString = GlusterDataModelManager.getInstance().getSecurityToken(); ChangePasswordDialog dialog = new ChangePasswordDialog(getShell()); @@ -223,7 +223,7 @@ public class LoginDialog extends Dialog { } } - ClustersClient clustersClient = new ClustersClient(GlusterDataModelManager.getInstance().getSecurityToken()); + ClustersClient clustersClient = new ClustersClient(); IPreferenceStore preferenceStore = Activator.getDefault().getPreferenceStore(); boolean showClusterSelectionDialog = preferenceStore.getBoolean(PreferenceConstants.P_SHOW_CLUSTER_SELECTION_DIALOG); -- cgit