James Moger
2013-11-25 23e08cdfd5f61e06f584c7fce4e765dd8b6e6643
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;
@@ -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