goja-web/src/main/java/goja/security/goja/SecurityKit.java
public static <T extends Model> T getLoginUser(HttpServletRequest req) {
        return (T) req.getSession().getAttribute(LOGIN_SESSION_KEY);
    }
public static <T extends Model> T getLoginUser(HttpServletRequest req) {
        return (T) req.getSession().getAttribute(LOGIN_SESSION_KEY);
    }
public static < T extends Model > T getLoginUser ( HttpServletRequest req ) { return ( T ) req . getSession ( ) . getAttribute ( LOGIN_SESSION_KEY ) ; }
Obtain user information from the Session

@param req request
@return user infomation.
Obtain user information from the Session