Package org.jahia.services.usermanager

Examples of org.jahia.services.usermanager.JahiaUser.verifyPassword()


                String user = cred.substring(0,colonInd);
                String pass = cred.substring(colonInd+1);

                JahiaUser jahiaUser = ServicesRegistry.getInstance().getJahiaUserManagerService().lookupUser(user);
                if (jahiaUser != null) {
                    if (jahiaUser.verifyPassword(pass)) {
                        if (logger.isDebugEnabled()) {
                            logger.debug("User " + user + " authenticated.");
                        }
                        if (isAccounteLocked(jahiaUser)) {
                            logger.debug("Login failed. Account is locked for user " + user);
View Full Code Here


                    JahiaUserManagerService theService = theRegistry.getJahiaUserManagerService();
                    if (theService != null) {
                        // Check if the user has site access ( even though it is not a user of this site )
                        theUser = ServicesRegistry.getInstance().getJahiaUserManagerService().lookupUser(username);
                        if (theUser != null) {
                            if (theUser.verifyPassword(password)) {
                                if (!isAccounteLocked(theUser)) {
                                    ok = true;
                                } else {
                                    logger.warn("Login failed: account for user " + theUser.getUsername() + " is locked.");
                                    httpServletRequest.setAttribute(VALVE_RESULT, ACCOUNT_LOCKED);
View Full Code Here

                    } else {
                        // this can happen if we are still starting up.
                        user = JCRUserManagerProvider.getInstance().lookupUser(name);
                    }

                    if ((token != null) || user.verifyPassword(key)) {
                        principals.add(new JahiaPrincipal(name));
                        if (user.isAdminMember(0)) {
                            principals.add(new AdminPrincipal(name));
                        }
                    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.