necouchman commented on a change in pull request #584:
URL: https://github.com/apache/guacamole-client/pull/584#discussion_r642129040



##########
File path: 
extensions/guacamole-auth-totp/src/main/java/org/apache/guacamole/auth/totp/user/UserVerificationService.java
##########
@@ -166,7 +166,7 @@ private boolean setKey(UserContext context, UserTOTPKey key)
 
         // Get mutable set of attributes
         User self = context.self();
-        Map<String, String> attributes = new HashMap<String, String>();
+        Map<String, String> attributes = new HashMap<>(self.getAttributes());

Review comment:
       Well, this resolves the issue of the data getting wiped out during TOTP 
enrollment; however, the data is no longer displayed, at all, in the admin 
interface - in fact, when I go to edit a user, I don't see the "Profile" 
section at all. Guessing something else needs to be updated in addition to 
these two places...




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to