GUACAMOLE-394: No need to explicitly set ID - it's automatically pulled from the username.

This commit is contained in:
Michael Jumper
2017-09-12 15:16:53 -07:00
parent 446a9d0e12
commit 3ccb4d4ac1

View File

@@ -132,7 +132,6 @@ public class ModeledUserContext extends RestrictedObject
// Create login record for user // Create login record for user
userRecord = new ActivityRecordModel(); userRecord = new ActivityRecordModel();
userRecord.setUserID(currentUser.getUser().getModel().getObjectID());
userRecord.setUsername(currentUser.getIdentifier()); userRecord.setUsername(currentUser.getIdentifier());
userRecord.setStartDate(new Date()); userRecord.setStartDate(new Date());
userRecord.setRemoteHost(currentUser.getCredentials().getRemoteHostname()); userRecord.setRemoteHost(currentUser.getCredentials().getRemoteHostname());