GUACAMOLE-1199: Only update JDBC attributes if values have been provided.

This commit is contained in:
Virtually Nick committed 2021-08-21 20:52:57 -04:00
1 parent 8afac61dd6
commit 04c908d5f7
2 files changed
+40 -26

No files matched your search

@@ -166,7 +166,7 @@ public class UserVerificationService {
// Get mutable set of attributes
User self = context.self();
Map<String, String> attributes = new HashMap<String, String>();
Map<String, String> attributes = new HashMap<>();
// Set/overwrite current TOTP key state
attributes.put(TOTPUser.TOTP_KEY_SECRET_ATTRIBUTE_NAME, BASE32.encode(key.getSecret()));