增加登录Banner开关,默认开启

This commit is contained in:
wsczx
2025-08-24 01:16:27 +08:00
parent a44f2d6161
commit 437749acc5
4 changed files with 11 additions and 4 deletions

View File

@@ -149,10 +149,13 @@ func CreateSession(w http.ResponseWriter, r *http.Request, authSession *AuthSess
rd := RequestData{
SessionId: sess.Sid,
SessionToken: sess.Sid + "@" + sess.Token,
Banner: other.Banner,
ProfileName: base.Cfg.ProfileName,
ProfileHash: profileHash,
CertHash: certHash,
// Banner: other.Banner,
ProfileName: base.Cfg.ProfileName,
ProfileHash: profileHash,
CertHash: certHash,
}
if base.Cfg.EnableBanner {
rd.Banner = other.Banner
}
w.WriteHeader(http.StatusOK)