- Timestamp:
- 04/15/19 10:28:02 (5 years ago)
- Location:
- trunk/src/org/expeditee/auth
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/auth/Actions.java
r1309 r1310 61 61 import org.expeditee.settings.folders.FolderSettings; 62 62 import org.expeditee.settings.identity.secrets.KeyList; 63 import org.expeditee.stats.Formatter; 63 64 import org.ngikm.cryptography.CryptographyConstants; 64 65 … … 76 77 Mail.sendMail(mail, colleagueName); 77 78 } 79 public static void SendTestMessageHemi(String param) { 80 String time = Formatter.getDateTime(); 81 String sender = UserSettings.UserName.get(); 82 String recipient = param.split(" ")[0]; 83 String message = param.split(" ")[1]; 84 Map<String, String> options = new HashMap<String, String>(); 85 options.put("Accept", "beep"); 86 options.put("Reject", "beep"); 87 MailEntry mail = new MailEntry(time, sender, recipient, "Have a key", message, options); 88 Mail.sendMail(mail, recipient); 89 } 90 78 91 private static String userbackup = "authadmin"; 79 92 public static void ToggleAuth() { -
trunk/src/org/expeditee/auth/sharing/Actions.java
r1261 r1310 69 69 // Obtain parameters for shamir 70 70 String[] arguments = key.getText().split(" "); 71 int totalShares = Integer.parseInt(arguments[1]);72 int requiredShares = Integer.parseInt(arguments[2]);71 int requiredShares = Integer.parseInt(arguments[1]); 72 int totalShares = arguments.length - 2; 73 73 74 74 // Create shares … … 102 102 // Obtain parameters for shamir 103 103 String[] arguments = key.getText().split(" "); 104 int totalShares = Integer.parseInt(arguments[ 1]);105 int requiredShares = Integer.parseInt(arguments[ 2]);104 int totalShares = Integer.parseInt(arguments[2]); 105 int requiredShares = Integer.parseInt(arguments[1]); 106 106 107 107 // Perform join
Note:
See TracChangeset
for help on using the changeset viewer.