Skip to content

New Updates #2

Merged
M9nx merged 4 commits intoM9nx:mainfrom
Mohvmed111:main
Sep 9, 2025
Merged

New Updates #2
M9nx merged 4 commits intoM9nx:mainfrom
Mohvmed111:main

Conversation

@Mohvmed111
Copy link
Contributor

New Updates

Introduces avatar upload and preview features in the user settings page. Users can now select and upload a new profile photo, with immediate preview and feedback on upload status. Updates are integrated with the authentication context to reflect changes.
AuthContext now verifies the stored token with the server and logs out if invalid. SettingsPage improves user update logic and handles validation errors more consistently for both profile and password updates.
Refines ProtectedRoute to check for stored tokens and redirects unauthenticated users to the home page instead of login. Updates AuthContext to avoid logging out on token validation failure and to reduce UI flicker by setting user/token immediately. Removes the Profile link from Sidebar and ensures LoginPage always navigates to home after successful login.
Introduces SpaPathRewrite middleware to serve the React SPA for /settings routes, updates web.php to explicitly handle /settings and nested settings paths, and moves previous settings controllers and React components to backup directories. This change prepares for a new SPA-based settings implementation while preserving the old code for reference.
@M9nx M9nx merged commit f5a0114 into M9nx:main Sep 9, 2025
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants