public InweboLoginSearchResponse loginSearchQuery(final String login) {
        val loginSearchResult = consoleAdmin.loginSearch(login);
        val err = loginSearchResult.getErr();
        val response = (InweboLoginSearchResponse) buildResponse(new InweboLoginSearchResponse(),
            "loginSearch(" + login + ')', err);
        if (response.isOk()) {
            val count = loginSearchResult.getCount();
            response.setCount(count);
            if (count == 1) {
                var activationStatus = loginSearchResult.getActivationStatus().getFirst();
                val userId = loginSearchResult.getId().getFirst();
                if (activationStatus == 1) {
                    val loginQueryResult = consoleAdmin.loginQuery(userId);
                    if ("OK".equals(loginQueryResult.getErr())) {
                        var hasAuthenticator = loginQueryResult.getManame().stream().anyMatch(maname -> maname.contains("Authenticator"));
                        if (!hasAuthenticator) {
                            activationStatus = BROWSER_AUTHENTICATION_STATUS;
                        } else if (loginQueryResult.getManame().size() > 2) {
                            activationStatus = PUSH_AND_BROWSER_AUTHENTICATION_STATUS;
                        }
                    }
                }
                response.setUserId(userId);
                response.setUserStatus(loginSearchResult.getStatus().getFirst());
                response.setActivationStatus(activationStatus);
            }
        }
        return response;
    }
Login search and query.

@param login the login
@return the inwebo login search/query response
support/cas-server-support-inwebo-mfa/src/main/java/org/apereo/cas/support/inwebo/service/InweboService.java