Examples of canLogIn()


Examples of org.dspace.eperson.EPerson.canLogIn()

            if (eperson == null)
            {
                // lookup failed.
                return NO_SUCH_USER;
            }
            else if (!eperson.canLogIn())
            {
                // cannot login this way
                return BAD_ARGS;
            }
            else if (eperson.getRequireCertificate())
View Full Code Here

Examples of org.dspace.eperson.EPerson.canLogIn()

                        return NO_SUCH_USER;
                    }
                }

                // make sure this is a login account
                else if (!eperson.canLogIn())
                {
                    log.warn(LogManager.getHeader(context, "authenticate",
                            "type=x509certificate, email=" + email
                                    + ", canLogIn=false, rejecting."));
                    return BAD_ARGS;
View Full Code Here

Examples of org.dspace.eperson.EPerson.canLogIn()

            // e-mail address corresponds to active account
            if (eperson.getRequireCertificate())
            {
                return CERT_REQUIRED;
            }
            else if (!eperson.canLogIn())
            {
                return BAD_ARGS;
            }

            if (ldap.ldapAuthenticate(dn, password, context))
View Full Code Here

Examples of org.dspace.eperson.EPerson.canLogIn()

    if (eperson == null) {
      // lookup failed.
      log.error("Shibboleth-based password authentication failed for user "+username+" because no such user exists.");
      return NO_SUCH_USER;
    } else if (!eperson.canLogIn()) {
      // cannot login this way
      log.error("Shibboleth-based password authentication failed for user "+username+" because the eperson object is not allowed to login.");
      return BAD_ARGS;
    } else if (eperson.getRequireCertificate()) {
      // this user can only login with x.509 certificate
View Full Code Here

Examples of org.dspace.eperson.EPerson.canLogIn()

            validityKey.append(eperson.getID());
            validityKey.append(eperson.getEmail());
            validityKey.append(eperson.getNetid());
            validityKey.append(eperson.getFirstName());
            validityKey.append(eperson.getLastName());
            validityKey.append(eperson.canLogIn());
            validityKey.append(eperson.getRequireCertificate());
        }
        else if (dso instanceof Group)
        {
            Group group = (Group) dso;
View Full Code Here

Examples of org.dspace.eperson.EPerson.canLogIn()

            Context ctx = UIUtil.obtainContext(request);

            EPerson eperson = ctx.getCurrentUser();

            // Do we have an active e-person now?
            if ((eperson != null) && eperson.canLogIn())
            {
                // Everything OK - they should have already been logged in.
                // resume previous request
                Authenticate.resumeInterruptedRequest(request, response);
View Full Code Here

Examples of org.dspace.eperson.EPerson.canLogIn()

        try
        {
            if (registering)
            {
                // If an already-active user is trying to register, inform them so
                if ((eperson != null && eperson.canLogIn()) || (eperson2 != null && eperson2.canLogIn()))
                {
                    log.info(LogManager.getHeader(context,
                            "already_registered", "email=" + email));

                    JSPManager.showJSP(request, response,
View Full Code Here

Examples of org.dspace.eperson.EPerson.canLogIn()

   
    String emailValue = eperson.getEmail();
    String firstValue = eperson.getFirstName();
    String lastValue  = eperson.getLastName();
    String phoneValue = eperson.getMetadata("phone");
    boolean canLogInValue = eperson.canLogIn();
    boolean certificatValue = eperson.getRequireCertificate();
    java.util.List<String> deleteConstraints = eperson.getDeleteConstraints();
   
    if (request.getParameter("email_address") != null)
        {
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.