| | |
| | | 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")) {
|
| | |
| | | }
|
| | |
|
| | | 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;
|
| | |
| | | form.add(new CheckBox("canFork").setEnabled(app().settings().getBoolean(Keys.web.allowForking, true)));
|
| | | form.add(new CheckBox("canCreate"));
|
| | | form.add(new CheckBox("excludeFromFederation"));
|
| | | form.add(new CheckBox("disabled"));
|
| | |
|
| | | form.add(new RegistrantPermissionsPanel("repositories", RegistrantType.REPOSITORY, repos, permissions, getAccessPermissions()));
|
| | | form.add(teams.setEnabled(editTeams));
|
| | |
|