feat(developers): overhaul signup to auto-register SilverDESK accounts
All checks were successful
Build and Deploy / deploy (push) Successful in 41s

Users now pick a password and get a SilverDESK account immediately on
submit. The form includes debounced username availability checking,
password fields with validation, and a post-submit link to SilverDESK.
The approval flow no longer creates a SilverDESK user (already exists)
and only provisions Mattermost + Mailcow.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-22 11:03:16 +00:00
parent a4d2e571d5
commit d0785e04e1
5 changed files with 181 additions and 24 deletions

View File

@@ -9,11 +9,17 @@ public static class DeveloperEndpoints
{
var group = app.MapGroup("/api/developers");
group.MapGet("/check-username/{username}", async (string username, DeveloperApplicationService service) =>
{
var available = await service.CheckUsernameAsync(username);
return Results.Ok(new { available });
});
group.MapPost("/apply", async (DeveloperApplication application, DeveloperApplicationService service) =>
{
var (success, message) = await service.SubmitApplicationAsync(application);
var (success, message, token) = await service.SubmitApplicationAsync(application);
return success
? Results.Ok(new { message })
? Results.Ok(new { message, token })
: Results.Problem(message, statusCode: 502);
});