aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/com/juick/server/UserQueries.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/juick/server/UserQueries.java b/src/com/juick/server/UserQueries.java
index 7a8520be..8d2d0e60 100644
--- a/src/com/juick/server/UserQueries.java
+++ b/src/com/juick/server/UserQueries.java
@@ -55,16 +55,15 @@ public class UserQueries {
return hash;
}
- public static int createUser(Connection sql, String username, String password, String lang) {
+ public static int createUser(Connection sql, String username, String password) {
int uid = 0;
PreparedStatement stmt = null;
ResultSet rs = null;
try {
- stmt = sql.prepareStatement("INSERT INTO users(nick,passw,lang) VALUES (?,?,?)", Statement.RETURN_GENERATED_KEYS);
+ stmt = sql.prepareStatement("INSERT INTO users(nick,passw) VALUES (?,?)", Statement.RETURN_GENERATED_KEYS);
stmt.setString(1, username);
stmt.setString(2, password);
- stmt.setString(3, lang);
stmt.executeUpdate();
rs = stmt.getGeneratedKeys();
if (rs.first()) {