From: Roland Häder Date: Fri, 13 May 2016 12:44:57 +0000 (+0200) Subject: Ask the EJB for a free confirmation key and set it in user X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c581d57400b78fc1b570a72b095b394a43dbc5fc;p=jfinancials-war.git Ask the EJB for a free confirmation key and set it in user --- diff --git a/src/java/org/mxchange/addressbook/beans/register/AddressbookUserRegisterWebSessionBean.java b/src/java/org/mxchange/addressbook/beans/register/AddressbookUserRegisterWebSessionBean.java index f8417551..6c71bf4b 100644 --- a/src/java/org/mxchange/addressbook/beans/register/AddressbookUserRegisterWebSessionBean.java +++ b/src/java/org/mxchange/addressbook/beans/register/AddressbookUserRegisterWebSessionBean.java @@ -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 {