mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-09-15 15:46:53 +08:00
增加登录Banner开关,默认开启
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user