]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
Ask the EJB for a free confirmation key and set it in user
authorRoland Häder <roland@mxchange.org>
Fri, 13 May 2016 12:44:57 +0000 (14:44 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 13 May 2016 19:52:45 +0000 (21:52 +0200)
src/java/org/mxchange/pizzaapplication/beans/register/PizzaUserRegisterWebSessionBean.java

index 25dee4e6fe9b3f5115880826a3a9e696e64f27dc..2c5b932aecc7f8bda2705c63fff1849cca2d4848 100644 (file)
@@ -142,6 +142,12 @@ public class PizzaUserRegisterWebSessionBean extends BasePizzaController impleme
                } else {
                        // No debugging of this part
                        user.setUserAccountStatus(UserAccountStatus.UNCONFIRMED);
+
+                       // Ask EJB for generating a not-existing confirmation key
+                       String confirmKey = this.registerBean.generateConfirmationKey(user);
+
+                       // Set it in user
+                       user.setUserConfirmKey(confirmKey);
                }
 
                try {