Changeset 1384


Ignore:
Timestamp:
05/27/19 15:09:01 (5 years ago)
Author:
bln4
Message:

Instructions for sending your contact details to a user can now be obtained by running the action on the multiuser1 frame.

File:
1 edited

Legend:

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

    r1373 r1384  
    11package org.expeditee.auth;
    22
     3import java.awt.Desktop;
    34import java.io.File;
    45import java.io.FileNotFoundException;
     
    197198        //      End Misc Auth Actions
    198199       
     200        //      Start Making Contacts Actions
     201        public static void AuthDistributeContactDetails() {
     202                MessageBay.displayMessage(
     203                                "To receive directions on distributing your contact details to someone, attach their username to your cursor and run this action again."
     204                );
     205        }
     206        public static String AuthDistributeContactDetails(String username) {
     207                StringBuilder sb = new StringBuilder();
     208                String nl = System.getProperty("line.separator");
     209                String me = UserSettings.UserName.get();
     210                Path profilePath = Paths.get(FrameIO.PROFILE_PATH).resolve(me);
     211                try {
     212                        Desktop.getDesktop().open(profilePath.toFile());
     213                        sb.append("1. We have opened your profile directory for you.  Tab to it and right click on the " + me + "-credentials directory." + nl);
     214                } catch (IOException e) {
     215                        sb.append("1. Open your profile directory (" + profilePath + ") and right click on the " + me + "-credentials directory." + nl);
     216                }
     217               
     218                sb.append("2. Click on 'Share with Google Drive'." + nl);
     219                sb.append("3. Enter " + username + "'s in the text box." + nl);
     220                sb.append("4. Click on the button to the right of the text box in order to set the share to 'View Only'." + nl);
     221                sb.append("5. Optionally add a note for " + username + " to read.  Click the send button.");
     222               
     223                return sb.toString();
     224        }
     225        //      End Making Contacts Actions
     226       
    199227        //      Start Regain Account Access Actions     
    200228        /**
     
    545573         * Function to submit a request to specified contacts to be the current users pw colleagues.
    546574         */
     575        @SuppressWarnings("unused")
    547576        private static boolean submitTrustedUsersPasswordRecovery(Map<AuthenticationTag, String> userData) throws InvalidKeySpecException, NoSuchAlgorithmException, KeyStoreException, FileNotFoundException, CertificateException, ClassNotFoundException, IOException, SQLException {
    548577                String colleagueOne = userData.get(AuthenticationTag.TrustedUserOne);
Note: See TracChangeset for help on using the changeset viewer.