Merge pull request #14344 from influxdata/auth_create_user_fix
fix(http): fixed auth userid overwritepull/14346/head
commit
d45bd1bb83
|
@ -198,7 +198,12 @@ func (h *AuthorizationHandler) handlePostAuthorization(w http.ResponseWriter, r
|
|||
return
|
||||
}
|
||||
|
||||
auth := req.toPlatform(user.ID)
|
||||
userID := user.ID
|
||||
if req.UserID != nil && req.UserID.Valid() {
|
||||
userID = *req.UserID
|
||||
}
|
||||
|
||||
auth := req.toPlatform(userID)
|
||||
|
||||
org, err := h.OrganizationService.FindOrganizationByID(ctx, auth.OrgID)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue