- private void run(HttpServletRequest req, String password) throws SQLException, GigiApiException {
- try {
- DatabaseConnection.getInstance().beginTransaction();
- buildup.setPreferredLocale(Page.getLanguage(req).getLocale());
- buildup.setDob(myDoB.getDate());
- buildup.insert(password);
- int memid = buildup.getId();
- EmailAddress ea = new EmailAddress(buildup, buildup.getEmail());
- ea.insert(Page.getLanguage(req));
-
- GigiPreparedStatement ps = DatabaseConnection.getInstance().prepare("insert into `alerts` set `memid`=?," + " `general`=?, `country`=?, `regional`=?, `radius`=?");
- ps.setInt(1, memid);
- ps.setString(2, general ? "1" : "0");
- ps.setString(3, country ? "1" : "0");
- ps.setString(4, regional ? "1" : "0");
- ps.setString(5, radius ? "1" : "0");
- ps.execute();
- Notary.writeUserAgreement(buildup, "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());