Package se.gu.fire.backend.intersession

Examples of se.gu.fire.backend.intersession.CredentialsTuple


    public void doFinishRegistration() {

        String sessionKey = getSessionKey();
        FireLogger.logInfo("Completing registration for seesion key: {0}", sessionKey);

        CredentialsTuple credentials = interSessionContext.getRegistrationSessionData(sessionKey);

        if (credentials == null) {
            FireFaces.addErrorMessage("Error during registration process", "session key does not exist, please try registering again" );
            return;
//            return "An error has occured, please try registering again";
        }

        /*
         * Persist the user
         */
        FireUser newUser = credentials.getUser();
        String password = credentials.getPassword();

        userManager.create(newUser);
        newUser = userManager.findUser(newUser.getEmail());

        /*
 
View Full Code Here


        String sessionKey = interSessionContextBean.addRegistrationSessionData(user, password);
       
        /*
         * Assert it is present
         */
        CredentialsTuple credentialsTuple = interSessionContextBean.getRegistrationSessionData(sessionKey);
        assertTrue(credentialsTuple.getUser().equals(user));
        assertTrue(credentialsTuple.getPassword().equals(password));
    }
View Full Code Here

TOP

Related Classes of se.gu.fire.backend.intersession.CredentialsTuple

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.