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

This commit is contained in:
Virtually Nick
2020-12-28 15:21:06 -05:00
parent 8afac61dd6
commit 04c908d5f7
2 changed files with 40 additions and 26 deletions

View File

@@ -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()));