修改获取SSO登入登出URL方法

This commit is contained in:
余 欣怀 2023-06-20 14:50:16 +08:00
parent 9a2e21d646
commit daadddc8a2

View File

@ -13,7 +13,7 @@ func GetLoginUrl(ident string, redirectUrl string, env ...string) string {
return fmt.Sprintf("%s://%s%s", scheme, host, uri)
}
func GetLogout(ident string, env ...string) string {
func GetLogoutUrl(ident string, env ...string) string {
uri := fmt.Sprintf("/admin/main/logout?ident=%s&redirectUrl=", ident)
scheme, host := getSchemeAndHost(env...)
return fmt.Sprintf("%s://%s%s", scheme, host, uri)