]> git.mxchange.org Git - addressbook-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 20:36:43 +0000 (22:36 +0200)
src/java/org/mxchange/addressbook/beans/register/AddressbookUserRegisterWebSessionBean.java

index f8417551637612513583dbc94ce34ab1d32f9687..6c71bf4b2b9d15a162824200179a5d8922bb64e6 100644 (file)
@@ -142,6 +142,12 @@ public class AddressbookUserRegisterWebSessionBean extends BaseAddressbookContro
                } 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 {