]> git.mxchange.org Git - jjobs-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>
Sat, 14 May 2016 13:10:42 +0000 (15:10 +0200)
src/java/org/mxchange/jjobs/beans/register/JobsUserRegisterWebSessionBean.java

index 7b9c0e583b4a751838ff08af4a1ef933d12da42e..05b79d704c0dae25a724903672ceb9bc29579915 100644 (file)
@@ -142,6 +142,12 @@ public class JobsUserRegisterWebSessionBean extends BaseJobsController implement
                } 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 {