Use pass access scheme in signin url
This commit is contained in:
parent
61d32aef0f
commit
338fce1263
1 changed files with 2 additions and 2 deletions
|
@ -690,12 +690,12 @@ func buildAuthSignURL(input interface{}) string {
|
||||||
u, _ := url.Parse(s)
|
u, _ := url.Parse(s)
|
||||||
q := u.Query()
|
q := u.Query()
|
||||||
if len(q) == 0 {
|
if len(q) == 0 {
|
||||||
return fmt.Sprintf("%v?rd=$scheme://$http_host$request_uri", s)
|
return fmt.Sprintf("%v?rd=$pass_access_scheme://$http_host$request_uri", s)
|
||||||
}
|
}
|
||||||
|
|
||||||
if q.Get("rd") != "" {
|
if q.Get("rd") != "" {
|
||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
|
|
||||||
return fmt.Sprintf("%v&rd=$scheme://$http_host$request_uri", s)
|
return fmt.Sprintf("%v&rd=$pass_access_scheme://$http_host$request_uri", s)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue