feat: Auto-admin for specific email + POUNCE branding
Some checks failed
CI / Frontend Lint & Type Check (push) Has been cancelled
CI / Frontend Build (push) Has been cancelled
CI / Backend Lint (push) Has been cancelled
CI / Backend Tests (push) Has been cancelled
CI / Docker Build (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
Deploy / Build & Push Images (push) Has been cancelled
Deploy / Deploy to Server (push) Has been cancelled
Deploy / Notify (push) Has been cancelled

- guggeryves@hotmail.com automatically gets admin rights on registration
- Changed navigation logo from 'pounce' to 'POUNCE' (uppercase)
- Adjusted letter-spacing for better visual appearance
This commit is contained in:
yves.gugger
2025-12-08 16:10:58 +01:00
parent b5a0d17689
commit df4d87a643
2 changed files with 8 additions and 2 deletions

View File

@ -99,6 +99,12 @@ async def register(
name=user_data.name,
)
# Auto-admin for specific email
ADMIN_EMAILS = ["guggeryves@hotmail.com"]
if user.email.lower() in [e.lower() for e in ADMIN_EMAILS]:
user.is_admin = True
await db.commit()
# Generate verification token
verification_token = secrets.token_urlsafe(32)
user.email_verification_token = verification_token

View File

@ -20,10 +20,10 @@ export function Header() {
className="flex items-center h-full hover:opacity-80 transition-opacity duration-300"
>
<span
className="text-[1.375rem] sm:text-[1.625rem] font-bold tracking-[-0.02em] text-foreground"
className="text-[1.25rem] sm:text-[1.5rem] font-bold tracking-[0.15em] text-foreground"
style={{ fontFamily: 'var(--font-display), Playfair Display, Georgia, serif' }}
>
pounce
POUNCE
</span>
</Link>