Changeset 1540 for trunk/src/org/expeditee/auth/account/Create.java
- Timestamp:
- 11/02/20 15:47:20 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/auth/account/Create.java
r1505 r1540 31 31 import org.expeditee.core.Colour; 32 32 import org.expeditee.encryption.CryptographyConstants; 33 import org.expeditee.gui.Browser; 33 34 import org.expeditee.gui.DisplayController; 34 35 import org.expeditee.gui.Frame; … … 86 87 // Update in memory settings 87 88 ProfileManager.ensureDefaultProfile(); 88 System.setProperty("user.name",username);89 Browser.setExpediteeUserName(username); 89 90 UserSettings.UserName.set(username); 90 91 //UserSettings.ProfileName.set(username); 91 UserSettings.ProfileName.set(FrameIO.ConvertToValidFramesetName(username)); 92 final String profileName = FrameIO.ConvertToValidFramesetName(username); 93 UserSettings.ProfileName.set(profileName); 92 94 UserSettings.setupDefaultFolders(); 93 95 94 96 Frame profile; 95 97 try { 96 profile = createNewProfile(username, email, personalKey, privateKey, publicKey);98 profile = createNewProfile(username, profileName, email, personalKey, privateKey, publicKey); 97 99 } catch (InvalidFramesetNameException | ExistingFramesetException e) { 98 100 return CreateResult.ErrorNewProfile; … … 201 203 } 202 204 203 private static Frame createNewProfile(String username, String email, String personalKey, String privateKey,205 private static Frame createNewProfile(String username, String profileName, String email, String personalKey, String privateKey, 204 206 String publicKey) throws InvalidFramesetNameException, ExistingFramesetException { 205 207 // Establish the initial settings for the created user. … … 241 243 242 244 // Create users profile 243 Frame profile = FrameIO.CreateNewProfile(username, initialSettings, notifiers);245 Frame profile = FrameIO.CreateNewProfile(username, profileName, initialSettings, notifiers); 244 246 int lastNumber = FrameIO.getLastNumber(profile.getFramesetName()); 245 247 for (int i = 1; i <= lastNumber; i++) {
Note:
See TracChangeset
for help on using the changeset viewer.