summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/org/openslx/satellitedaemon/db/DbUser.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/org/openslx/satellitedaemon/db/DbUser.java b/src/main/java/org/openslx/satellitedaemon/db/DbUser.java
index 133adf4..deebd66 100644
--- a/src/main/java/org/openslx/satellitedaemon/db/DbUser.java
+++ b/src/main/java/org/openslx/satellitedaemon/db/DbUser.java
@@ -7,12 +7,14 @@ public class DbUser
public final String firstName;
public final String lastName;
public final String email;
+ public final String institution;
- public DbUser(String userId, String firstName, String lastName, String email) {
+ public DbUser(String userId, String firstName, String lastName, String email, String institution) {
this.userId = userId;
this.firstName = firstName;
this.lastName = lastName;
this.email = email;
+ this.institution = institution;
}
/**
@@ -22,7 +24,7 @@ public class DbUser
*/
public static DbUser getUserById(String userId) {
return MySQL.findUniqueOrNull( DbUser.class, "SELECT user.userID, user.Vorname AS firstName, " +
- "user.Nachname AS lastName, user.mail AS email" +
+ "user.Nachname AS lastName, user.mail AS email, user.institution" +
"FROM m_user user" +
"WHERE userID = ?", userId );
}