diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/de/bwlehrpool/bwlp_guac/BwlpAuthenticationProvider.java | 6 | ||||
-rw-r--r-- | src/main/java/de/bwlehrpool/bwlp_guac/ConnectionManager.java | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/main/java/de/bwlehrpool/bwlp_guac/BwlpAuthenticationProvider.java b/src/main/java/de/bwlehrpool/bwlp_guac/BwlpAuthenticationProvider.java index e77c584..40935ea 100644 --- a/src/main/java/de/bwlehrpool/bwlp_guac/BwlpAuthenticationProvider.java +++ b/src/main/java/de/bwlehrpool/bwlp_guac/BwlpAuthenticationProvider.java @@ -31,7 +31,7 @@ public class BwlpAuthenticationProvider implements AuthenticationProvider { LOGGER.info("Plugin build revision: " + MANIFEST.getProperty("Build-Revision")); String timestamp = MANIFEST.getProperty("Build-Revision-Timestamp"); - DateFormat formatter = new SimpleDateFormat("yyyy.MM.dd HH:mm"); + DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm"); long milliSeconds= Long.parseLong(timestamp); Calendar calendar = Calendar.getInstance(); calendar.setTimeInMillis(milliSeconds); @@ -80,11 +80,9 @@ public class BwlpAuthenticationProvider implements AuthenticationProvider { public UserContext redecorate(UserContext decorated, UserContext context, AuthenticatedUser authenticatedUser, Credentials credentials) throws GuacamoleException { - LOGGER.info(MANIFEST.getProperty("Build-Revision")); - String username = Util.getUsername(authenticatedUser); if (username == null) { - LOGGER.warn("redecorate: Ignoring user without name"); + LOGGER.warn("Ignoring user without name"); return context; } diff --git a/src/main/java/de/bwlehrpool/bwlp_guac/ConnectionManager.java b/src/main/java/de/bwlehrpool/bwlp_guac/ConnectionManager.java index 10c9eb2..5e4cb90 100644 --- a/src/main/java/de/bwlehrpool/bwlp_guac/ConnectionManager.java +++ b/src/main/java/de/bwlehrpool/bwlp_guac/ConnectionManager.java @@ -354,7 +354,7 @@ public class ConnectionManager { try { ctx = SSLContext.getInstance("TLSv1.2"); } catch (NoSuchAlgorithmException e) { - LOGGER.warn("Could not get TLSv1.2 context, SSL will be secure :-(", e); + LOGGER.warn("Could not get TLSv1.2 context, SSL will be insecure :-(", e); } if (ctx != null) { try { |