aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Ugnich Anton2014-01-31 20:57:46 +0700
committerGravatar Ugnich Anton2014-01-31 20:57:46 +0700
commit6a75cc16b2864aa4fb06e61eb9011d83497f607f (patch)
treedc6c1840aee342805fe5ae26e5f8e13be45fe67b
parent4718f53d8e43a170e49c9f082452bcaecf6e5fe6 (diff)
createUser -lang
-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()) {