+
+ // compatibility with legacy, will be removed
+ if (!userProfile.hasProperty(ARGEO_ENABLED)) {
+ session.getWorkspace().getVersionManager()
+ .checkout(userProfile.getPath());
+ userProfile.setProperty(ARGEO_ENABLED, true);
+ userProfile.setProperty(ARGEO_ACCOUNT_NON_EXPIRED, true);
+ userProfile.setProperty(ARGEO_ACCOUNT_NON_LOCKED, true);
+ userProfile
+ .setProperty(ARGEO_CREDENTIALS_NON_EXPIRED, true);
+ session.save();
+ session.getWorkspace().getVersionManager()
+ .checkin(userProfile.getPath());
+ }