mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
GUACAMOLE-1149: Refresh model of current user after automatic account creation.
The proper database IDs must be populated in the current user's ModeledUser for other parts of the database extension to work correctly, including saving of user attributes.
This commit is contained in:
@@ -133,7 +133,8 @@ public class JDBCAuthenticationProviderService implements AuthenticationProvider
|
|||||||
|
|
||||||
// If auto account creation is enabled, add user to DB.
|
// If auto account creation is enabled, add user to DB.
|
||||||
if (environment.autoCreateAbsentAccounts()) {
|
if (environment.autoCreateAbsentAccounts()) {
|
||||||
userService.createObject(new PrivilegedModeledAuthenticatedUser(user.getCurrentUser()), user);
|
ModeledUser createdUser = userService.createObject(new PrivilegedModeledAuthenticatedUser(user.getCurrentUser()), user);
|
||||||
|
user.setModel(createdUser.getModel());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user