mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-05-09 08:25:54 +02:00
[PR #128] [MERGED] Fixed re-auth setup and gitignore node modules #941
Labels
No labels
A1
automated
automated
bug
bug
Closed due to inactivity
contrib
dependencies
dependencies
duplicate
enhancement
feedback
hold
invalid
Notes
P1S
pull-request
security
ThumbsUp
user-report
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/bambuddy-maziggy-1#941
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/maziggy/bambuddy/pull/128
Author: @JesseFPV
Created: 1/22/2026
Status: ✅ Merged
Merged: 1/22/2026
Merged by: @maziggy
Base:
0.1.6b11← Head:0.1.6b11📝 Commits (1)
3a84864Fixed re-auth setup and gitignore node modules📊 Changes
8 files changed (+591 additions, -499 deletions)
View changed files
📝
.gitignore(+3 -0)📝
backend/app/api/routes/auth.py(+72 -36)📝
frontend/src/App.tsx(+3 -0)📝
frontend/src/contexts/AuthContext.tsx(+24 -5)📝
frontend/src/pages/SettingsPage.tsx(+5 -1)📝
frontend/src/pages/SetupPage.tsx(+64 -37)📝
static/assets/index-7nHE42SH.js(+419 -419)📝
static/index.html(+1 -1)📄 Description
Description
This PR fixes authentication setup issues, particularly around re-enabling authentication and preventing redirect loops. It also adds
node_modules/to.gitignoreto prevent accidentally committing Node.js dependencies.Related Issue
Fixes #
Type of Change
Changes Made
setup_completedstatus tracking to prevent infinite redirect loops when setup was already completedAuthContextto prevent redirect loops and handle setup completion state properly/setupafter authentication was already enablednode_modules/to.gitignoreto prevent committing Node.js dependenciesSetupPageto refresh auth status after setup completion and handle cases where admin users already existScreenshots
Testing
Test scenarios:
/setupafter authentication is already enabled (should redirect to login)Checklist
Additional Notes
setup_completedflag is now tracked in the database to distinguish between "auth not enabled" and "setup not completed yet"🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.