mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-25 16:58:06 +08:00
fix usernmae
This commit is contained in:
parent
62cb4c8cac
commit
d87448ade9
@ -976,6 +976,9 @@ var Index = &ctx.Context{Name: "web", Help: "应用中心",
|
|||||||
|
|
||||||
if !right {
|
if !right {
|
||||||
login = m.Spawn().Cmd("session").Appendv("login").(*ctx.Message)
|
login = m.Spawn().Cmd("session").Appendv("login").(*ctx.Message)
|
||||||
|
if login != nil && !m.Options("username") {
|
||||||
|
m.Option("username", login.Cap("stream"))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if login != nil {
|
if login != nil {
|
||||||
http.SetCookie(w, &http.Cookie{Name: "sessid", Value: login.Cap("sessid"), Path: "/"})
|
http.SetCookie(w, &http.Cookie{Name: "sessid", Value: login.Cap("sessid"), Path: "/"})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user