|
|
@ -64,6 +64,7 @@ func aclMiddleware(s *Server, next echo.HandlerFunc) echo.HandlerFunc {
|
|
|
|
return next(c)
|
|
|
|
return next(c)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
// If there is openId in query string and related user is found, then skip auth.
|
|
|
|
// If there is openId in query string and related user is found, then skip auth.
|
|
|
|
openID := c.QueryParam("openId")
|
|
|
|
openID := c.QueryParam("openId")
|
|
|
|
if openID != "" {
|
|
|
|
if openID != "" {
|
|
|
@ -80,6 +81,7 @@ func aclMiddleware(s *Server, next echo.HandlerFunc) echo.HandlerFunc {
|
|
|
|
return next(c)
|
|
|
|
return next(c)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
sess, _ := session.Get("session", c)
|
|
|
|
sess, _ := session.Get("session", c)
|
|
|
|