Changeset 1384
- Timestamp:
- 05/27/19 15:09:01 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/auth/Actions.java
r1373 r1384 1 1 package org.expeditee.auth; 2 2 3 import java.awt.Desktop; 3 4 import java.io.File; 4 5 import java.io.FileNotFoundException; … … 197 198 // End Misc Auth Actions 198 199 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 199 227 // Start Regain Account Access Actions 200 228 /** … … 545 573 * Function to submit a request to specified contacts to be the current users pw colleagues. 546 574 */ 575 @SuppressWarnings("unused") 547 576 private static boolean submitTrustedUsersPasswordRecovery(Map<AuthenticationTag, String> userData) throws InvalidKeySpecException, NoSuchAlgorithmException, KeyStoreException, FileNotFoundException, CertificateException, ClassNotFoundException, IOException, SQLException { 548 577 String colleagueOne = userData.get(AuthenticationTag.TrustedUserOne);
Note:
See TracChangeset
for help on using the changeset viewer.