Refactored the code, addded google translator, and fixed some bugs
This commit is contained in:
parent
36cee77790
commit
ed1505254d
20 changed files with 844 additions and 370 deletions
|
|
@ -138,7 +138,7 @@ public class User extends DBBean{
|
|||
|
||||
public static boolean emailExists(String email, DBConnection db) throws SQLException{
|
||||
PreparedStatement sql = db.getPreparedStatement(
|
||||
"SELECT * FROM User WHERE email=? LIMIT 1");
|
||||
"SELECT email FROM User WHERE email=? LIMIT 1");
|
||||
sql.setString(1, email);
|
||||
|
||||
String tmp = DBConnection.exec(sql, new SimpleSQLHandler<String>());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue