Skip to content

Commit

Permalink
Add missing external psc information into register (#2091) (#2092)
Browse files Browse the repository at this point in the history
The register rest api does not read external psc information
from request, and always use vc information. There is no way
to use an external psc for registeration from api, such as
during upgrade without the fix.

(cherry picked from commit 341ca9e)
  • Loading branch information
wjun authored Sep 16, 2018
1 parent 3197ce1 commit deedb98
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions installer/fileserver/routes/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ func RegisterHandler(resp http.ResponseWriter, req *http.Request) {
PSCConfig.Admin.User = r.User
PSCConfig.Admin.Password = r.Password
PSCConfig.Admin.Thumbprint = r.Thumbprint
PSCConfig.PscDomain = r.PSCDomain
PSCConfig.PscInstance = r.ExternalPSC
cancel, err := PSCConfig.Admin.VerifyLogin(op)
defer cancel()
if err != nil {
Expand Down

0 comments on commit deedb98

Please sign in to comment.