Implement appeal form flow with dynamic pages, integrate punishment selection, and add username retrieval logic. Update API schema and enhance auth.service for username handling.

This commit is contained in:
2025-08-05 23:11:38 +02:00
parent 737b26a6c7
commit ae1e972438
8 changed files with 229 additions and 40 deletions
@@ -62,6 +62,25 @@ RequestNewUserLogin:
application/json:
schema:
$ref: '../generic/errors.yml#/components/schemas/ApiError'
GetUsername:
get:
tags:
- login
summary: Get the username for the logged in user
operationId: getUsername
responses:
'200':
description: Username retrieved
content:
application/json:
schema:
$ref: '#/components/schemas/Username'
default:
description: Unexpected error
content:
application/json:
schema:
$ref: '../generic/errors.yml#/components/schemas/ApiError'
components:
parameters:
Code:
@@ -72,6 +91,12 @@ components:
type: string
description: The code to log in with
schemas:
Username:
properties:
username:
type: string
required:
- username
LoginData:
type: object
required: