fix(developers): correct SilverDESK provisioning payload fields
All checks were successful
Build and Deploy / deploy (push) Successful in 41s
All checks were successful
Build and Deploy / deploy (push) Successful in 41s
The CreateUserDto expects `fullName` and `password` but the payload was sending `name` (wrong property name) and omitting password entirely, causing 400 BadRequest validation errors. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -46,7 +46,13 @@ public class ProvisioningService
|
||||
try
|
||||
{
|
||||
var client = _httpClientFactory.CreateClient("SilverDesk");
|
||||
var payload = new { username, email, name = fullName, role = "user" };
|
||||
var payload = new
|
||||
{
|
||||
username,
|
||||
email,
|
||||
fullName,
|
||||
password = Guid.NewGuid().ToString("N")[..16] + "!A1"
|
||||
};
|
||||
var json = JsonSerializer.Serialize(payload);
|
||||
var content = new StringContent(json, Encoding.UTF8, "application/json");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user