Ignore:
Timestamp:
05/02/19 15:17:25 (5 years ago)
Author:
bln4
Message:

Added code for the ResetPassword action.
Also the beginnings of the code in the Password class for regaining access to account.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/auth/account/Password.java

    r1340 r1348  
    9090                }
    9191        }
     92       
     93        public static void confirmIntergalacticNumberAndGenerateSubstituteAccount(Map<AuthenticationTag, String> userData) {
     94                String username = userData.get(AuthenticationTag.Username);
     95                String email = userData.get(AuthenticationTag.Email);
     96                String intergalacticNumber = userData.get(AuthenticationTag.IntergalacticNumber);
     97                String newPassword = userData.get(AuthenticationTag.NewPassword);
     98                String newPasswordAgain = userData.get(AuthenticationTag.NewPasswordAgain);
     99               
     100                try {
     101                        boolean match = AuthenticatorBrowser.getInstance().confirmIntergalaticNumber(username, email, intergalacticNumber);             
     102                        if (match) {
     103                                MessageBay.displayMessage(":)");
     104                        } else {
     105                                MessageBay.displayMessage(":(");
     106                        }
     107                } catch (NoSuchAlgorithmException | KeyStoreException | CertificateException | ClassNotFoundException
     108                                | IOException | SQLException e) {
     109                        e.printStackTrace();
     110                }
     111        }
    92112}
Note: See TracChangeset for help on using the changeset viewer.