mirror of
http://172.20.10.11:3000/gitadmin/INSIGHT-MVP.git
synced 2026-06-25 00:16:41 +02:00
fix: make GET /settings/branding public to break login loading loop
LoginPage calls /settings/branding to load branding config (logo, colors). Without @Public(), the JWT guard returns 401, which triggered the axios response interceptor to attempt a silent refresh, fail, and call window.location.href = '/login' — creating an infinite reload loop on the login page itself. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
ad3a580d0b
commit
98e7f48ce2
1 changed files with 2 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ import {
|
|||
BadRequestException,
|
||||
} from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation } from '@nestjs/swagger';
|
||||
import { Public } from '../../common/decorators/public.decorator';
|
||||
import { Roles } from '../../common/decorators/roles.decorator';
|
||||
import { RolesGuard } from '../../common/guards/roles.guard';
|
||||
import { randomUUID, X509Certificate, createPrivateKey } from 'crypto';
|
||||
|
|
@ -152,6 +153,7 @@ export class SettingsController {
|
|||
* Branding-Einstellungen lesen (Logo, Sidebar-Farbe, Login-Hintergrund etc.).
|
||||
*/
|
||||
@Get('branding')
|
||||
@Public()
|
||||
@ApiOperation({ summary: 'Branding-Einstellungen lesen' })
|
||||
async getBranding(): Promise<{
|
||||
logo: string | null;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue