Kawai Wiki

Compare Revisions

Ignore whitespace Rev 44 → Rev 45

/trunk/src/main/java/org/kawai/model/User.java
12,8 → 12,6
private String email;
private int languageId;
private int groupId;
public User() { }
50,23 → 48,6
this.email = email;
}
 
public int getLanguageId() {
return languageId;
}
 
public void setLanguageId(int languageId) {
this.languageId = languageId;
}
public Language getLanguage() {
return Language.fromId(languageId);
}
public Locale getLocale() {
Language lang = getLanguage();
return lang != null ? lang.getLocale() : null;
}
 
public int getGroupId() {
return groupId;
}
/trunk/src/main/java/org/kawai/AppManager.java
102,7 → 102,6
.field("username", DBTypes.STRING)
.field("password", DBTypes.STRING)
.field("email", DBTypes.STRING)
.field("languageId", "language_id", DBTypes.INTEGER)
.field("groupId", "group_id", DBTypes.INTEGER);
bean(Page.class, "Pages")
/trunk/src/main/java/org/kawai/action/UserAction.java
135,8 → 135,6
setSessionGroup(u.getGroup());
setSessionLocale(u.getLocale());
// send email asynchronous to user with password
Letter welcome = new TextLetter("welcome.txt");
189,8 → 187,6
setSessionGroup(newUser.getGroup());
setSessionLocale(newUser.getLocale());
addMessage("edit_ok");
return UPDATED;