add session

This commit is contained in:
landaiqing
2024-09-23 13:31:57 +08:00
parent 7aae53e533
commit 5cc4294268
14 changed files with 250 additions and 131 deletions

View File

@@ -48,7 +48,8 @@ func HandleLoginResponse(c *gin.Context, uid string) {
global.LOG.Error(err)
return
}
formattedScript := fmt.Sprintf(script, tokenData, global.CONFIG.System.Web)
formattedScript := fmt.Sprintf(script, tokenData, global.CONFIG.System.WebURL())
c.Data(http.StatusOK, "text/html; charset=utf-8", []byte(formattedScript))
return
}