James Moger
2014-03-03 94e12c168f5eec300fd23d0de25c7dc93a96c429
src/main/java/com/gitblit/wicket/pages/EditUserPage.java
@@ -154,6 +154,9 @@
                     return;
                  }
                  // change the cookie
                  userModel.cookie = StringUtils.getSHA1(userModel.username + password);
                  // Optionally store the password MD5 digest.
                  String type = app().settings().getString(Keys.realm.passwordStorage, "md5");
                  if (type.equalsIgnoreCase("md5")) {
@@ -188,7 +191,11 @@
            }
            try {
               app().gitblit().updateUserModel(oldName, userModel, isCreate);
               if (isCreate) {
                  app().gitblit().addUser(userModel);
               } else {
                  app().gitblit().reviseUser(oldName, userModel);
               }
            } catch (GitBlitException e) {
               error(e.getMessage());
               return;