- private void run(HttpServletRequest req, String password) throws SQLException, GigiApiException {
- try {
- DatabaseConnection.getInstance().beginTransaction();
- User u = new User(email, password, buildupName, myDoB.getDate(), Page.getLanguage(req).getLocale());
-
- try (GigiPreparedStatement ps = new GigiPreparedStatement("INSERT INTO `alerts` SET `memid`=?," + " `general`=?, `country`=?, `regional`=?, `radius`=?")) {
- ps.setInt(1, u.getId());
- ps.setBoolean(2, general);
- ps.setBoolean(3, country);
- ps.setBoolean(4, regional);
- ps.setBoolean(5, radius);
- ps.execute();
- }
- Notary.writeUserAgreement(u, "CCA", "account creation", "", true, 0);
+ private void run(HttpServletRequest req, String password) throws GigiApiException {
+ User u = new User(email, password, myDoB.getDate(), Page.getLanguage(req).getLocale(), cs.getCountry(), ni.getNameParts());