mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-24 08:20:31 +08:00
Override session when signed in by link.
This commit is contained in:
parent
8e5f3c18e1
commit
30bed3cb47
@ -54,9 +54,9 @@ func returnRequest(ctx *context.Context, msg string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func AutoLoginFilter(ctx *context.Context) {
|
func AutoLoginFilter(ctx *context.Context) {
|
||||||
if getSessionUser(ctx) != "" {
|
//if getSessionUser(ctx) != "" {
|
||||||
return
|
// return
|
||||||
}
|
//}
|
||||||
|
|
||||||
query := ctx.Request.URL.RawQuery
|
query := ctx.Request.URL.RawQuery
|
||||||
queryMap, err := url.ParseQuery(query)
|
queryMap, err := url.ParseQuery(query)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user