James Moger
2013-05-30 79d3240ea489067f3eb1af5e535b3687c507a249
src/main/java/com/gitblit/models/UserModel.java
@@ -75,17 +75,21 @@
   // non-persisted fields
   public boolean isAuthenticated;
   public AccountType accountType;
   public UserPreferences userPreferences;
   
   public UserModel(String username) {
      this.username = username;
      this.isAuthenticated = true;
      this.accountType = AccountType.LOCAL;
      this.userPreferences = new UserPreferences(this.username);
   }
   private UserModel() {
      this.username = "$anonymous";
      this.isAuthenticated = false;
      this.accountType = AccountType.LOCAL;
      this.userPreferences = new UserPreferences(this.username);
   }
   
   public boolean isLocalAccount() {
@@ -602,6 +606,10 @@
      return "~" + username;
   }
   
   public UserPreferences getPreferences() {
      return userPreferences;
   }
   @Override
   public int hashCode() {
      return username.hashCode();