feat(developers): overhaul signup to auto-register SilverDESK accounts
All checks were successful
Build and Deploy / deploy (push) Successful in 41s
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:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user