James Moger
2014-03-21 22f90cf8bcc12295c3ca55a160eceb3e41408dcd
src/main/java/com/gitblit/manager/UserManager.java
@@ -28,6 +28,7 @@
import org.slf4j.LoggerFactory;
import com.gitblit.ConfigUserService;
import com.gitblit.Constants;
import com.gitblit.IStoredSettings;
import com.gitblit.IUserService;
import com.gitblit.Keys;
@@ -93,10 +94,10 @@
            // create the user service from the legacy config
            String realmKey = legacyBackingServices.get(realm);
            logger.warn("");
            logger.warn("#################################################################");
            logger.warn(Constants.BORDER2);
            logger.warn(" Key '{}' is obsolete!", realmKey);
            logger.warn(" Please set '{}={}'", Keys.realm.userService, settings.getString(realmKey, "${baseFolder}/users.conf"));
            logger.warn("#################################################################");
            logger.warn(Constants.BORDER2);
            logger.warn("");
            File realmFile = runtimeManager.getFileOrFolder(realmKey, "${baseFolder}/users.conf");
            service = createUserService(realmFile);
@@ -149,6 +150,19 @@
   }
   /**
    * Returns true if the username represents an internal account
    *
    * @param username
    * @return true if the specified username represents an internal account
    */
   @Override
   public boolean isInternalAccount(String username) {
      return !StringUtils.isEmpty(username)
            && (username.equalsIgnoreCase(Constants.FEDERATION_USER)
                  || username.equalsIgnoreCase(UserModel.ANONYMOUS.username));
   }
   /**
    * Returns the cookie value for the specified user.
    *
    * @param model