Skip to content

Commit

Permalink
Return existing account on newAccount with key in use (letsencrypt#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein authored and cpu committed Aug 10, 2018
1 parent 9980521 commit 8045651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wfe/wfe.go
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ func (wfe *WebFrontEndImpl) NewAccount(
// the account and a 200 OK response
acctURL := wfe.relativeEndpoint(request, fmt.Sprintf("%s%s", acctPath, existingAcct.ID))
response.Header().Set("Location", acctURL)
_ = wfe.writeJsonResponse(response, http.StatusOK, nil)
_ = wfe.writeJsonResponse(response, http.StatusOK, existingAcct)
return
} else if existingAcct == nil && newAcctReq.OnlyReturnExisting {
// If there *isn't* an existing account and the created account request
Expand Down

0 comments on commit 8045651

Please sign in to comment.