- Timestamp:
- 04/05/19 13:21:26 (5 years ago)
- Location:
- trunk/src/org/expeditee
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/auth/AuthenticatorBrowser.java
r1282 r1287 90 90 } 91 91 92 public static boolean isAuthenticationRequired() { 93 return Boolean.getBoolean("expeditee.authentication"); 94 } 95 96 public static boolean isAuthenticated() { 97 return isAuthenticationRequired() && !UserSettings.UserName.get().equals(Browser.USER_NOBODY); 98 } 99 92 100 private AuthenticatorBrowser() throws KeyStoreException, FileNotFoundException, IOException, NoSuchAlgorithmException, CertificateException, ClassNotFoundException, SQLException { 93 101 super("Authentication"); -
trunk/src/org/expeditee/gui/Browser.java
r1282 r1287 165 165 */ 166 166 public static void main(String[] args) { 167 if (Boolean.getBoolean(" auth")) {167 if (Boolean.getBoolean("expeditee.authentication")) { 168 168 String starting_user_name = System.getProperty("user.name"); 169 169 System.setProperty("startinguser.name", starting_user_name); … … 203 203 204 204 public static void init() { 205 if (Boolean.getBoolean(" auth")) {205 if (Boolean.getBoolean("expeditee.authentication")) { 206 206 try { 207 207 _theBrowser = AuthenticatorBrowser.getInstance(); … … 274 274 Frame userProfile = loadProfiles(); 275 275 276 if (!Boolean.getBoolean(" auth")) {276 if (!Boolean.getBoolean("expeditee.authentication")) { 277 277 String userName = UserSettings.ProfileName.get(); 278 278 FrameIO.setupPersonalResources(userName); -
trunk/src/org/expeditee/gui/FrameIO.java
r1284 r1287 165 165 } 166 166 167 if (!UserSettings.PublicAndPrivateResources || UserSettings.UserName.get().equals(Browser.USER_NOBODY)) {167 if (!UserSettings.PublicAndPrivateResources || !AuthenticatorBrowser.isAuthenticated()) { 168 168 169 169 if (System.getProperty("user.name").equals(Browser.USER_NOBODY)) { -
trunk/src/org/expeditee/settings/UserSettings.java
r1277 r1287 30 30 import org.expeditee.agents.mail.MailSession; 31 31 import org.expeditee.agents.wordprocessing.JSpellChecker; 32 import org.expeditee. gui.Browser;32 import org.expeditee.auth.AuthenticatorBrowser; 33 33 import org.expeditee.gui.Frame; 34 34 import org.expeditee.gui.FrameIO; … … 241 241 242 242 public static void appendDefaultFolders() { 243 if (PublicAndPrivateResources && !UserSettings.UserName.get().equals(Browser.USER_NOBODY)) {243 if (PublicAndPrivateResources && AuthenticatorBrowser.isAuthenticated()) { 244 244 // The comments here explain how things have changed with the new regime. 245 245 // FrameDirs
Note:
See TracChangeset
for help on using the changeset viewer.