diff --git a/wise-webapp/src/main/java/com/wisemapping/ncontroller/UsersController.java b/wise-webapp/src/main/java/com/wisemapping/ncontroller/UsersController.java index 20f13c38..4a5de802 100644 --- a/wise-webapp/src/main/java/com/wisemapping/ncontroller/UsersController.java +++ b/wise-webapp/src/main/java/com/wisemapping/ncontroller/UsersController.java @@ -52,9 +52,6 @@ public class UsersController { @Autowired private UserService userService; - @Value("${registration.email.enabled}") - boolean emailConfirmEnabled; - @Autowired private ReCaptcha captchaService; @@ -111,11 +108,13 @@ public class UsersController { user.setFirstname(userBean.getFirstname()); user.setLastname(userBean.getLastname()); user.setPassword(userBean.getPassword()); - userService.createUser(user, emailConfirmEnabled); + + boolean confirmRegistrationByEmail = false; + userService.createUser(user, confirmRegistrationByEmail); // Forward to the success view ... result = new ModelAndView("userRegistrationSuccess"); - result.addObject("confirmByEmail", emailConfirmEnabled); + result.addObject("confirmByEmail", confirmRegistrationByEmail); } return result; } diff --git a/wise-webapp/src/main/webapp/WEB-INF/app.properties b/wise-webapp/src/main/webapp/WEB-INF/app.properties index 9dabbd69..e63aff27 100755 --- a/wise-webapp/src/main/webapp/WEB-INF/app.properties +++ b/wise-webapp/src/main/webapp/WEB-INF/app.properties @@ -9,6 +9,8 @@ #database.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect #database.username=wisemapping #database.password=password +#database.validation.enabled=true +#database.validation.query=SELECT 1 # HSQL Configuration properties database.url=jdbc:hsqldb:file:target/db/wisemapping @@ -16,6 +18,8 @@ database.driver=org.hsqldb.jdbc.JDBCDriver database.hibernate.dialect=org.hibernate.dialect.HSQLDialect database.username=sa database.password= +database.validation.enabled=false +database.validation.query= ################################################################################## # Mail configuration. Must be configured to enable user registration confirmation. @@ -60,9 +64,6 @@ mail.errorReporterEmail= # Users Registration Configuration ################################################################################## -# Enable/Disable user registration confirmation by e-mail. If it's enabled, mail must be configured. -registration.email.enabled = false - # Enable captcha confirmation google.recaptcha.enabled = true diff --git a/wise-webapp/src/main/webapp/WEB-INF/wisemapping-dao.xml b/wise-webapp/src/main/webapp/WEB-INF/wisemapping-dao.xml index 4936d3c3..871a472f 100644 --- a/wise-webapp/src/main/webapp/WEB-INF/wisemapping-dao.xml +++ b/wise-webapp/src/main/webapp/WEB-INF/wisemapping-dao.xml @@ -1,74 +1,76 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - com/wisemapping/model/Collaborator.hbm.xml - com/wisemapping/model/Mindmap.hbm.xml - com/wisemapping/model/Collaboration.hbm.xml - com/wisemapping/model/CollaborationProperties.hbm.xml - com/wisemapping/model/AccessAuditory.hbm.xml - com/wisemapping/model/MindMapHistory.hbm.xml - - - - - ${database.hibernate.dialect} - - - - - - - - - - - - - - - - - - - - - - - - - PROPAGATION_REQUIRED - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + com/wisemapping/model/Collaborator.hbm.xml + com/wisemapping/model/Mindmap.hbm.xml + com/wisemapping/model/Collaboration.hbm.xml + com/wisemapping/model/CollaborationProperties.hbm.xml + com/wisemapping/model/AccessAuditory.hbm.xml + com/wisemapping/model/MindMapHistory.hbm.xml + + + + + ${database.hibernate.dialect} + + + + + + + + + + + + + + + + + + + + + + + + + PROPAGATION_REQUIRED + + + + + + + + + +