James Moger
2012-09-07 13a3f5bc3e2d25fc76850f86070dc34efe60d77a
src/com/gitblit/FileUserService.java
@@ -133,13 +133,16 @@
    * @return cookie value
    */
   @Override
   public char[] getCookie(UserModel model) {
   public String getCookie(UserModel model) {
      if (!StringUtils.isEmpty(model.cookie)) {
         return model.cookie;
      }
      Properties allUsers = super.read();
      String value = allUsers.getProperty(model.username);
      String[] roles = value.split(",");
      String password = roles[0];
      String cookie = StringUtils.getSHA1(model.username + password);
      return cookie.toCharArray();
      return cookie;
   }
   /**