Examples of resetPassword()


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()

            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()) {
                mgr.grantRole("admin", newUser);
            }
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.sete.service.admin.SeteUserProfileService.resetPassword()

        doAuthorization(request);

    ResetPasswordForm rpForm = (ResetPasswordForm)form;
    SeteUserProfileService service = getService(SeteUserProfileService.class);
    service.resetPassword(getAuthenticatedUser(request), rpForm.getNewPasswordConfirm());

        createSuccessMessage(request);

        return mapping.findForward(WebConstants.FORWARD_VIEW);
  }
View Full Code Here

Examples of org.sete.service.admin.SeteUserProfileService.resetPassword()

        doAuthorization(request);

    ResetPasswordForm rpForm = (ResetPasswordForm)form;
    SeteUserProfileService service = getService(SeteUserProfileService.class);
    service.resetPassword(getAuthenticatedUser(request), rpForm.getNewPasswordConfirm());

        createSuccessMessage(request);

        return mapping.findForward("view");
  }
View Full Code Here

Examples of org.wso2.carbon.register.ui.clients.TenantSelfRegistrationClient.resetPassword()

            tenantInfoBean.setAdmin(admin);
            tenantInfoBean.setTenantDomain(domain);

            TenantSelfRegistrationClient selfRegistrationClient =
                    new TenantSelfRegistrationClient(config, session);
            return selfRegistrationClient.resetPassword(tenantInfoBean);
        } catch (Exception e) {
            AxisFault fault = new AxisFault(e.getMessage());
            String msg = fault.getReason() + " Failed to reset password. tenant-domain: " + domain +
                    " admin: " + admin;
            log.error(msg, e);
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.