add err log for session start (#493)

* add validate for some plugins

* restore getSessionUserWithCache method

* add validate for i18n.config

* use embed dict for i18n

* add err log for session start
master
yubo 4 years ago committed by GitHub
parent 312c2d1574
commit e5f05aa724
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -121,6 +121,7 @@ func headerUsername(c *gin.Context) string {
func sessionStart(c *gin.Context) error {
s, err := session.Start(c.Writer, c.Request)
if err != nil {
logger.Warningf("session.Start() err %s", err)
return err
}
c.Request = c.Request.WithContext(session.NewContext(c.Request.Context(), s))

Loading…
Cancel
Save