mirror of
https://github.com/photoprism/photoprism.git
synced 2025-10-07 01:33:34 +08:00
Auth: Refactor cluster configuration and provisioning API endpoints #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -44,9 +44,9 @@ func obtainClientCredentialsViaRegister(portalURL, joinToken, nodeName string) (
|
||||
if err := json.NewDecoder(resp.Body).Decode(®Resp); err != nil {
|
||||
return "", "", err
|
||||
}
|
||||
id = regResp.Node.ID
|
||||
id = regResp.Node.ClientID
|
||||
if regResp.Secrets != nil {
|
||||
secret = regResp.Secrets.NodeSecret
|
||||
secret = regResp.Secrets.ClientSecret
|
||||
}
|
||||
if id == "" || secret == "" {
|
||||
return "", "", fmt.Errorf("missing client credentials in response")
|
||||
|
Reference in New Issue
Block a user