fix: shared check for server setup availability (#30311)

* fix: shared check for server setup availability

* chore: add medium test

* feat: require @Authenticated decorator everywhere

* fix: lints
This commit is contained in:
bo0tzz
2026-07-30 15:12:25 -04:00
committed by GitHub
parent 1f16fe16c2
commit a316ba35ca
24 changed files with 249 additions and 66 deletions
@@ -33,6 +33,7 @@ export class AuthController {
description: 'Login with username and password and receive a session token.',
history: new HistoryBuilder().added('v1').beta('v1').stable('v2'),
})
@Authenticated({ public: true })
async login(
@Res({ passthrough: true }) res: Response,
@Body() loginCredential: LoginCredentialDto,
@@ -55,6 +56,7 @@ export class AuthController {
description: 'Create the first admin user in the system.',
history: new HistoryBuilder().added('v1').beta('v1').stable('v2'),
})
@Authenticated({ public: true, setup: true })
signUpAdmin(@Body() dto: SignUpDto): Promise<UserAdminResponseDto> {
return this.service.adminSignUp(dto);
}