Examples of searchCitizenByVariable()


Examples of anvil.server.Realm.searchCitizenByVariable()

    } else {
      HttpServletRequest request = context.getRequest();

      String clientIp = request.getRemoteAddr();
      context.log().info("client ip: "+clientIp);
      Citizen[] searchResult = realm.searchCitizenByVariable("ctz.ip", clientIp);
      if (searchResult != null && searchResult.length > 0) {
        context.setCitizen(searchResult[0]);
        context.log().info("web: ipauthentication ok");
       
        if (context.getOriginalPathinfo().equals(loginPath)) {
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.