Changeset 1335 for trunk/src/org/expeditee/auth
- Timestamp:
- 04/29/19 15:07:44 (5 years ago)
- Location:
- trunk/src/org/expeditee/auth
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/auth/Actions.java
r1334 r1335 38 38 import org.expeditee.auth.account.Authenticate.AuthenticationResult; 39 39 import org.expeditee.auth.account.Create; 40 import org.expeditee.auth.account.Password; 40 41 import org.expeditee.auth.gui.MailBay; 41 42 import org.expeditee.auth.tags.AuthenticationTag; … … 241 242 } else { 242 243 userData.put(AuthenticationTag.Username, UserSettings.UserName.get()); 243 changePassword(userData);244 Password.changePassword(userData); 244 245 } 245 246 } else { … … 426 427 } 427 428 428 /*429 * Changes the recorded password for a user in the key store.430 */431 private static void changePassword(final Map<AuthenticationTag, String> userdata) throws NoSuchAlgorithmException, KeyStoreException, FileNotFoundException, CertificateException, IOException, ClassNotFoundException, SQLException {432 final String username = userdata.get(AuthenticationTag.Username);433 final String password = userdata.get(AuthenticationTag.Password);434 final String newpassword = userdata.get(AuthenticationTag.NewPassword);435 436 final SecretKey key = AuthenticatorBrowser.getInstance().getSecretKey(username, password);437 if (key == null) {438 MessageBay.errorMessage("The username + existing password combination was incorrect.");439 } else {440 AuthenticatorBrowser.getInstance().putKey(username, newpassword, key);441 MessageBay.displayMessage("Password changed successfully.");442 }443 }444 445 429 // // establish properties 446 430 // final String from = "[email protected]";
Note:
See TracChangeset
for help on using the changeset viewer.