package info.xiaomo.core.untils;

import javax.servlet.http.HttpSession;

/**
 * 把今天最好的表现当作明天最新的起点．．～
 * いま 最高の表現 として 明日最新の始発．．～
 * Today the best performance  as tomorrow newest starter!

 *
 * @author : xiaomo
 * github: https://github.com/houko
 * @email: xiaomo@xiaomo.info
 * <p>
 * Date: 2016/11/31 9:50
 * Copyright(©) 2015 by xiaomo.
 **/

public class AuthUtil {
    public static boolean isAuthorized(HttpSession session) {
        String currentUser = (String) session.getAttribute("currentUser");
        return !(currentUser == null || currentUser.isEmpty());
    }

}
