|
@@ -18,8 +18,8 @@ public class UserDaoImpl implements UserDao {
|
|
|
String sql = "insert into users value(null,?,?)";
|
|
|
try (Connection con = ConnectionUtil.getConnection();
|
|
|
PreparedStatement pt = con.prepareStatement(sql)) {
|
|
|
- pt.setString(1, email);
|
|
|
- pt.setString(2, pwd);
|
|
|
+ pt.setString(1, pwd);
|
|
|
+ pt.setString(2, email);
|
|
|
k = pt.executeUpdate();
|
|
|
} catch (SQLException e) {
|
|
|
e.printStackTrace();
|