Examples of resetPassword()


Examples of org.apache.roller.pojos.UserData.resetPassword()

            ud.setEnabled(Boolean.TRUE);
           
            // If user set both password and passwordConfirm then reset password
            if (    !StringUtils.isEmpty(form.getPasswordText())
            && !StringUtils.isEmpty(form.getPasswordConfirm())) {
                ud.resetPassword(RollerFactory.getRoller(),
                        form.getPasswordText(), form.getPasswordConfirm());
            }
           
            // save new user
            mgr.addUser(ud);
View Full Code Here

Examples of org.apache.roller.pojos.UserData.resetPassword()

               
                // If user set both password and passwordConfirm then reset password
                if (    !StringUtils.isEmpty(form.getPasswordText())
                && !StringUtils.isEmpty(form.getPasswordConfirm())) {
                    try {
                        data.resetPassword(RollerFactory.getRoller(),
                                form.getPasswordText(),
                                form.getPasswordConfirm());
                    } catch (RollerException e) {
                        msgs.add(ActionMessages.GLOBAL_MESSAGE,
                                new ActionMessage("yourProfile.passwordResetError"));
View Full Code Here

Examples of org.apache.roller.pojos.UserData.resetPassword()

                   
                    // Must have matching passwords and confirm passwords
                    if (    !StringUtils.isEmpty(userForm.getPasswordText())
                    && !StringUtils.isEmpty(userForm.getPasswordConfirm())) {
                        try {
                            user.resetPassword(RollerFactory.getRoller(),
                                    userForm.getPasswordText(),
                                    userForm.getPasswordConfirm());
                        } catch (RollerException e) {
                            msgs.add(ActionErrors.GLOBAL_ERROR,
                                    new ActionError("userSettings.passwordResetError"));
View Full Code Here

Examples of org.apache.roller.pojos.UserData.resetPassword()

                   
                    // If user set both password and passwordConfirm then reset
                    if (    !StringUtils.isEmpty(userForm.getPasswordText())
                    && !StringUtils.isEmpty(userForm.getPasswordConfirm())) {
                        try {
                            user.resetPassword(RollerFactory.getRoller(),
                                    userForm.getPasswordText(),
                                    userForm.getPasswordConfirm());
                        } catch (RollerException e) {
                            msgs.add(ActionErrors.GLOBAL_ERROR,
                                    new ActionMessage(
View Full Code Here

Examples of org.apache.roller.pojos.UserData.resetPassword()

            ud.setEnabled(Boolean.TRUE);
           
            // If user set both password and passwordConfirm then reset password
            if (    !StringUtils.isEmpty(form.getPasswordText())
            && !StringUtils.isEmpty(form.getPasswordConfirm())) {
                ud.resetPassword(RollerFactory.getRoller(),
                        form.getPasswordText(), form.getPasswordConfirm());
            }
           
            // save new user
            mgr.addUser(ud);
View Full Code Here

Examples of org.apache.roller.pojos.UserData.resetPassword()

               
                // If user set both password and passwordConfirm then reset password
                if (    !StringUtils.isEmpty(form.getPasswordText())
                && !StringUtils.isEmpty(form.getPasswordConfirm())) {
                    try {
                        data.resetPassword(RollerFactory.getRoller(),
                                form.getPasswordText(),
                                form.getPasswordConfirm());
                    } catch (RollerException e) {
                        msgs.add(ActionMessages.GLOBAL_MESSAGE,
                                new ActionMessage("yourProfile.passwordResetError"));
View Full Code Here

Examples of org.apache.roller.weblogger.pojos.User.resetPassword()

            ud.setEnabled(Boolean.TRUE);
           
            // If user set both password and passwordConfirm then reset password
            if (!StringUtils.isEmpty(getBean().getPasswordText()) &&
                    !StringUtils.isEmpty(getBean().getPasswordConfirm())) {
                ud.resetPassword(getBean().getPasswordText());
            }
           
            // are we using email activation?
            boolean activationEnabled = WebloggerRuntimeConfig.getBooleanProperty(
                    "user.account.activation.enabled");
View Full Code Here

Examples of org.apache.roller.weblogger.pojos.User.resetPassword()

            getBean().copyTo(newUser, getLocale()); // doesn't copy password
            newUser.setDateCreated(new java.util.Date());
           
            // set username and password
            newUser.setUserName(getBean().getUserName());
            newUser.resetPassword(getBean().getPassword());
           
            // are we granting the user admin rights?
            if(((CreateUserBean)getBean()).isAdministrator()) {
                newUser.grantRole("admin");
            }
View Full Code Here

Examples of org.apache.roller.weblogger.pojos.User.resetPassword()

           
            // If user set both password and passwordConfirm then reset password
            if (!StringUtils.isEmpty(getBean().getPasswordText()) &&
                    !StringUtils.isEmpty(getBean().getPasswordConfirm())) {
                try {
                    existingUser.resetPassword(getBean().getPasswordText());
                } catch (WebloggerException e) {
                    addMessage("yourProfile.passwordResetError");
                }
            }
           
View Full Code Here

Examples of org.apache.roller.weblogger.pojos.User.resetPassword()

            ud.setEnabled(Boolean.TRUE);
           
            // If user set both password and passwordConfirm then reset password
            if (!StringUtils.isEmpty(getBean().getPasswordText()) &&
                    !StringUtils.isEmpty(getBean().getPasswordConfirm())) {
                ud.resetPassword(getBean().getPasswordText());
            }
           
            // are we using email activation?
            boolean activationEnabled = WebloggerRuntimeConfig.getBooleanProperty(
                    "user.account.activation.enabled");
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.