Changeset 1356 for trunk


Ignore:
Timestamp:
05/06/19 16:56:22 (5 years ago)
Author:
bln4
Message:

Added pwcolleagues.inf file

File:
1 edited

Legend:

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

    r1352 r1356  
    104104                               
    105105                // Create credentials
    106                 boolean success = setupCredentialsFrame(username, profile);
     106                boolean success = setupCredentialsFrameAndINFs(username, profile);
    107107                if (!success) {
    108108                        return CreateResult.ErrorIODuringCredentialsFrameSetup;
     
    175175        }
    176176
    177         private static boolean setupCredentialsFrame(String username, Frame profile) {
     177        private static boolean setupCredentialsFrameAndINFs(String username, Frame profile) {
    178178                try {
    179179                        File credentialsDir = new File(profile.getFramesetPath() + username + "-credentials");
     
    192192                        Path destinationFile = destinationDirectory.resolve(AuthenticatorBrowser.CREDENTIALS_FRAME + ExpReader.EXTENTION);
    193193                        FrameIO.migrateFrame(credentialsFrame, destinationFile);
     194                        //      pwcolleagues.inf file.
     195                        String pwColleaguesPath = credentialsDir.getAbsolutePath() + File.separator + "pwcolleagues.inf";
     196                        File pwColleaguesFile = new File(pwColleaguesPath);
     197                        pwColleaguesFile.createNewFile();
     198                        out = new FileWriter(pwColleaguesFile);
     199                        out.write(AuthenticatorBrowser.PASSWORD_RECOVERY_FRAME + ".exp");
     200                        out.flush();
     201                        out.close();
    194202                        return true;
    195203                } catch (IOException e) {
Note: See TracChangeset for help on using the changeset viewer.