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

This commit is contained in:
余 欣怀 2023-06-20 15:29:30 +08:00
parent daadddc8a2
commit 67b30db9b4

View File

@ -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)
} }