From 587467321d1c2ccf519c78e54062f12a46bedf10 Mon Sep 17 00:00:00 2001 From: SysAdmin Date: Sat, 21 Feb 2026 23:49:37 +0000 Subject: [PATCH] fix(developers): correct SilverDESK provisioning payload fields 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 --- BlazorApp/Services/ProvisioningService.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/BlazorApp/Services/ProvisioningService.cs b/BlazorApp/Services/ProvisioningService.cs index 2d240e8..b9e4d8d 100644 --- a/BlazorApp/Services/ProvisioningService.cs +++ b/BlazorApp/Services/ProvisioningService.cs @@ -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");