Commit 0f48f7d1 authored by root's avatar root
parents cb7faf48 6e220efb
...@@ -11,5 +11,5 @@ func main() { ...@@ -11,5 +11,5 @@ func main() {
authRequestInfo.Account = "wln" authRequestInfo.Account = "wln"
authRequestInfo.Name = "wln/apple" authRequestInfo.Name = "wln/apple"
authRequestInfo.Service = "wln" authRequestInfo.Service = "wln"
utils.HttpAuth(*authRequestInfo) utils.HttpAuth(authRequestInfo)
} }
...@@ -64,7 +64,7 @@ func HttpLogin(username string, password string) (bool, error) { ...@@ -64,7 +64,7 @@ func HttpLogin(username string, password string) (bool, error) {
return true, nil return true, nil
} }
func HttpAuth(authReqInfo *authz.AuthRequestInfo) bool { func HttpAuth(authReqInfo authz.AuthRequestInfo) bool {
client := &http.Client{} client := &http.Client{}
authUrl := "http://47.57.4.97/c3ce/dockerimage/authorization" authUrl := "http://47.57.4.97/c3ce/dockerimage/authorization"
authReqInfo.Account = "wln" authReqInfo.Account = "wln"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment