summaryrefslogtreecommitdiffstats
path: root/src/com/gitblit/models
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2012-10-03 17:13:31 -0400
committerJames Moger <james.moger@gitblit.com>2012-10-03 17:13:31 -0400
commit61659013f64750a2bea217eb5e48b5365efe163f (patch)
tree507a0167fd48a7aa6a55c42822dbbbf53ab94013 /src/com/gitblit/models
parentcf265a320d82c67772a9ce6e75f08e0fdfb0c899 (diff)
downloadgitblit-61659013f64750a2bea217eb5e48b5365efe163f.tar.gz
gitblit-61659013f64750a2bea217eb5e48b5365efe163f.zip
Use anonymous usermodel in a few places
Diffstat (limited to 'src/com/gitblit/models')
-rw-r--r--src/com/gitblit/models/UserModel.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/gitblit/models/UserModel.java b/src/com/gitblit/models/UserModel.java
index 7c32a555..6d5de3bb 100644
--- a/src/com/gitblit/models/UserModel.java
+++ b/src/com/gitblit/models/UserModel.java
@@ -36,7 +36,7 @@ public class UserModel implements Principal, Serializable, Comparable<UserModel>
private static final long serialVersionUID = 1L;
- public static final UserModel ANONYMOUS = new UserModel("anonymous", false);
+ public static final UserModel ANONYMOUS = new UserModel();
// field names are reflectively mapped in EditUser page
public String username;
@@ -58,9 +58,9 @@ public class UserModel implements Principal, Serializable, Comparable<UserModel>
this.isAuthenticated = true;
}
- private UserModel(String username, boolean authenticated) {
- this.username = username;
- this.isAuthenticated = authenticated;
+ private UserModel() {
+ this.username = "anonymous";
+ this.isAuthenticated = false;
}
/**