Examples of canLogIn()


Examples of com.mojang.authlib.yggdrasil.YggdrasilUserAuthentication.canLogIn()

                    hasMojangData = true;
                }
            } else {
                Logger.logDebug("mojangData is null or empty");
            }
            if (authentication.canLogIn()) {
                try {
                    authentication.logIn();
                } catch (UserMigratedException e) {
                    Logger.logError(e.toString());
                    ErrorUtils.tossError("Invalid credentials. You have migrated your account. Use account email instead of username");
View Full Code Here

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

        if (eperson != null)
        {
            // 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))
                {
                    context.setCurrentUser(eperson);
View Full Code Here

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

            // lookup failed.
            if (eperson == null)
                return NO_SUCH_USER;

            // cannot login this way
            else if (!eperson.canLogIn())
                return BAD_ARGS;

            // this user can only login with x.509 certificate
            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()

        if (eperson != null)
        {
            // e-mail address corresponds to active account
            if (eperson.getRequireCertificate())
                return CERT_REQUIRED;
            else if (!eperson.canLogIn())
                return BAD_ARGS;
            {
                if (ldap.ldapAuthenticate(netid, password, context))
                {
                    context.setCurrentUser(eperson = EPerson.findByNetid(context, netid.toLowerCase()));
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();
    Vector<String> deleteConstraints = eperson.getDeleteConstraints();
   
    if (request.getParameter("email_address") != null)
      emailValue = request.getParameter("email_address");
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()

        } // now try to login user
        loggedUser = "anonymous";

        try {
            EPerson eUser = EPerson.findByEmail(context, user);
            if ((eUser.canLogIn()) && (eUser.checkPassword(pass))) {
                context.setCurrentUser(eUser);
                loggedUser = eUser.getName();
            } else {
                throw new EntityException("Bad username or password", user, 403);
            }
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()

            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
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.