Examples of rememberMe()


Examples of juzu.plugin.shiro.Login.rememberMe()

  public Response doLogin(Stage.Handler stage) {
    Request request = stage.getRequest();
    Login loginAnnotation = request.getHandler().getMethod().getAnnotation(Login.class);
    Subject subject = SecurityUtils.getSubject();

    boolean remember = request.getParameterArguments().get(loginAnnotation.rememberMe()) != null ? true : false;
    String username = null;
    String password = null;
    try {
      username = request.getParameterArguments().get(loginAnnotation.username()).getValue();
      password = request.getParameterArguments().get(loginAnnotation.password()).getValue();
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.