Package com.liferay.portal

Examples of com.liferay.portal.UserPasswordException


      }
      catch (Exception e) {
        if (e != null &&
          e instanceof UserPasswordException) {

          UserPasswordException upe = (UserPasswordException)e;

          SessionErrors.add(req, e.getClass().getName(), upe);

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


        throw new UserIdException();
      }
    }

    if (Validator.isNull(password)) {
      throw new UserPasswordException(
        UserPasswordException.PASSWORD_INVALID);
    }

    int authResult = Authenticator.FAILURE;
View Full Code Here

      }
    }

    if (!autoPassword) {
      if (!password1.equals(password2)) {
        throw new UserPasswordException(
          UserPasswordException.PASSWORDS_DO_NOT_MATCH);
      }
      else if (!PwdToolkitUtil.validate(password1) ||
           !PwdToolkitUtil.validate(password2)) {

        throw new UserPasswordException(
          UserPasswordException.PASSWORD_INVALID);
      }
    }
  }
View Full Code Here

  public void validate(String userId, String password1, String password2)
    throws PortalException, SystemException {

    if (!password1.equals(password2)) {
      throw new UserPasswordException(
        UserPasswordException.PASSWORDS_DO_NOT_MATCH);
    }
    else if (!PwdToolkitUtil.validate(password1) ||
         !PwdToolkitUtil.validate(password2)) {

      throw new UserPasswordException(
        UserPasswordException.PASSWORD_INVALID);
    }
    else if (!PasswordTrackerLocalManagerUtil.isValidPassword(
          userId, password1)) {

      throw new UserPasswordException(
        UserPasswordException.PASSWORD_ALREADY_USED);
    }
  }
View Full Code Here

        setForward(req, "portlet.admin.list_users");
      }
      else if (e != null &&
           e instanceof UserPasswordException) {

        UserPasswordException upe = (UserPasswordException)e;

        SessionErrors.add(req, e.getClass().getName(), upe);

        setForward(req, "portlet.admin.list_users");
      }
View Full Code Here

      }
      catch (Exception e) {
        if (e != null &&
          e instanceof UserPasswordException) {

          UserPasswordException upe = (UserPasswordException)e;

          SessionErrors.add(req, e.getClass().getName(), upe);

          setForward(req, "portlet.my_account.edit_profile");
        }
View Full Code Here

TOP

Related Classes of com.liferay.portal.UserPasswordException

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.