修改获取SSO登入登出URL方法
This commit is contained in:
parent
daadddc8a2
commit
67b30db9b4
@ -14,7 +14,7 @@ func GetLoginUrl(ident string, redirectUrl string, env ...string) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func GetLogoutUrl(ident string, env ...string) string {
|
func GetLogoutUrl(ident string, env ...string) string {
|
||||||
uri := fmt.Sprintf("/admin/main/logout?ident=%s&redirectUrl=", ident)
|
uri := fmt.Sprintf("/admin/main/loginOut?ident=%s&redirectUrl=", ident)
|
||||||
scheme, host := getSchemeAndHost(env...)
|
scheme, host := getSchemeAndHost(env...)
|
||||||
return fmt.Sprintf("%s://%s%s", scheme, host, uri)
|
return fmt.Sprintf("%s://%s%s", scheme, host, uri)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user