- Timestamp:
- 12/03/19 14:08:11 (4 years ago)
- Location:
- trunk/src/org/expeditee/auth
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/auth/Actions.java
r1452 r1476 301 301 // Confirm new requested passwords match 302 302 Map<AuthenticationTag, String> userData = userdata.get(); 303 if (!userData.get(AuthenticationTag.NewPassword).equals(userData.get(AuthenticationTag.NewPasswordAgain))) { 303 String username = userData.get(AuthenticationTag.Username).trim(); 304 if (username.length() == 0) { 305 MessageBay.errorMessage("Please fill out the username box."); 306 } else if (!userData.get(AuthenticationTag.NewPassword).equals(userData.get(AuthenticationTag.NewPasswordAgain))) { 304 307 MessageBay.errorMessage("The passwords you have provided do not match."); 305 return; 306 } 307 308 Password.regainAccountAccess(userData); 308 } else { 309 Password.regainAccountAccess(userData); 310 } 309 311 } 310 312 } -
trunk/src/org/expeditee/auth/account/Password.java
r1472 r1476 350 350 351 351 try { 352 // TODO: YIKES! We can currently change anyone's password! 352 353 AuthenticatorBrowser.getInstance().putKey(userData.get(AuthenticationTag.Username), userData.get(AuthenticationTag.NewPassword), new SecretKeySpec(join, SymmetricAlgorithm)); 353 354 } catch (KeyStoreException | NoSuchAlgorithmException | CertificateException | ClassNotFoundException
Note:
See TracChangeset
for help on using the changeset viewer.