Skip to content

Commit

Permalink
userpass: fix upgrade value for token_bound_cidrs (#8826)
Browse files Browse the repository at this point in the history
  • Loading branch information
calvn committed Apr 23, 2020
1 parent ecd9d9b commit cdce4d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/credential/userpass/path_users.go
Expand Up @@ -231,7 +231,7 @@ func (b *backend) userCreateUpdate(ctx context.Context, req *logical.Request, d
return logical.ErrorResponse(err.Error()), nil
}

if err := tokenutil.UpgradeValue(d, "bound_cidrs", "token_bound_cirs", &userEntry.BoundCIDRs, &userEntry.TokenBoundCIDRs); err != nil {
if err := tokenutil.UpgradeValue(d, "bound_cidrs", "token_bound_cidrs", &userEntry.BoundCIDRs, &userEntry.TokenBoundCIDRs); err != nil {
return logical.ErrorResponse(err.Error()), nil
}
}
Expand Down

0 comments on commit cdce4d3

Please sign in to comment.