diff options
Diffstat (limited to 'src/main/java/com/gitblit/client/EditUserDialog.java')
-rw-r--r-- | src/main/java/com/gitblit/client/EditUserDialog.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/com/gitblit/client/EditUserDialog.java b/src/main/java/com/gitblit/client/EditUserDialog.java index 2936a29d..ab3ea67e 100644 --- a/src/main/java/com/gitblit/client/EditUserDialog.java +++ b/src/main/java/com/gitblit/client/EditUserDialog.java @@ -325,6 +325,9 @@ public class EditUserDialog extends JDialog { return false;
}
+ // change the cookie
+ user.cookie = StringUtils.getSHA1(user.username + password);
+
String type = settings.get(Keys.realm.passwordStorage).getString("md5");
if (type.equalsIgnoreCase("md5")) {
// store MD5 digest of password
|